Skip to content

Commit

Permalink
Fix syntax warning in smart_open
Browse files Browse the repository at this point in the history
Fixes #20
  • Loading branch information
ZedThree committed Feb 16, 2022
1 parent 2582cdc commit 2e2a0f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fortdepend/smartopen.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ def smart_open(filename, mode="Ur"):
try:
yield fh
finally:
if filename is not "-":
if filename != "-":
fh.close()

0 comments on commit 2e2a0f4

Please sign in to comment.