Skip to content

Commit

Permalink
Reapply "TO BE REVERTED: test leaving out encoding"
Browse files Browse the repository at this point in the history
This reverts commit 24617c8.
  • Loading branch information
DanielYang59 committed Dec 12, 2024
1 parent 50cf71b commit 6438670
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pymatgen/util/io_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def micro_pyawk(filename, search, results=None, debug=None, postdebug=None):
for entry in search:
entry[0] = re.compile(entry[0])

with zopen(filename, mode="rt", encoding="utf-8") as file:
with zopen(filename, mode="rt") as file:
for line in file:
for entry in search:
match = re.search(entry[0], line)
Expand Down
2 changes: 1 addition & 1 deletion tests/io/pwmat/test_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TestACstrExtractor(PymatgenTest):
def test_extract(self):
filepath = f"{TEST_DIR}/atom.config"
ac_extractor = ACExtractor(file_path=filepath)
with zopen(filepath, mode="rt", encoding="utf-8") as file:
with zopen(filepath, mode="rt") as file:
ac_str_extractor = ACstrExtractor(atom_config_str="".join(file.readlines()))
assert ac_extractor.n_atoms == ac_str_extractor.get_n_atoms()
for idx in range(9):
Expand Down

0 comments on commit 6438670

Please sign in to comment.