Skip to content

Commit

Permalink
looks like splittext works for Path directly
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Dec 10, 2024
1 parent 0c07987 commit eb0a4db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monty/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def zopen(
)
kwargs["encoding"] = "utf-8"

_name, ext = os.path.splitext(str(filename))
_name, ext = os.path.splitext(filename)
ext = ext.lower()

if ext == ".bz2":
Expand Down

0 comments on commit eb0a4db

Please sign in to comment.