Skip to content

Commit

Permalink
Revert "remove custom encoding warning after python 3.10+"
Browse files Browse the repository at this point in the history
This reverts commit cb6b560.
  • Loading branch information
DanielYang59 committed Jan 10, 2025
1 parent f805352 commit 275ca4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/monty/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
from typing import IO, Any, Iterator, Union


class EncodingWarning(Warning): ... # Added in Python 3.10


def zopen(
filename: Union[str, Path],
/,
Expand Down
1 change: 1 addition & 0 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import pytest

from monty.io import (
EncodingWarning,
FileLock,
FileLockException,
_get_line_ending,
Expand Down

0 comments on commit 275ca4c

Please sign in to comment.