Skip to content

Commit 031169b

Browse files
committed
Test regression.
1 parent 96aa286 commit 031169b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pymatgen/core/structure.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4104,7 +4104,7 @@ def from_file(cls, filename: PathLike) -> IMolecule | Molecule: # type:ignore[o
41044104
filename = str(filename)
41054105

41064106
with zopen(filename, mode="rt", encoding="utf-8") as file:
4107-
contents: str = file.read().decode("utf-8")
4107+
contents: str = file.read()
41084108
fname = filename.lower()
41094109
if fnmatch(fname, "*.xyz*"):
41104110
return cls.from_str(contents, fmt="xyz")

0 commit comments

Comments
 (0)