We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
smart_open
1 parent 2582cdc commit 2e2a0f4Copy full SHA for 2e2a0f4
fortdepend/smartopen.py
@@ -23,5 +23,5 @@ def smart_open(filename, mode="Ur"):
23
try:
24
yield fh
25
finally:
26
- if filename is not "-":
+ if filename != "-":
27
fh.close()
0 commit comments