summaryrefslogtreecommitdiffstats
path: root/Lib/ftplib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-01 01:29:16 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-06-01 01:29:16 (GMT)
commit094662a16542d1cc56713b35dde39089490dec35 (patch)
treeeb433a4bebe8dc9eb28de9f7655f8fab24498a52 /Lib/ftplib.py
parent0f4940c0a8d2ac66ccf90fb12739967915043406 (diff)
downloadcpython-094662a16542d1cc56713b35dde39089490dec35.zip
cpython-094662a16542d1cc56713b35dde39089490dec35.tar.gz
cpython-094662a16542d1cc56713b35dde39089490dec35.tar.bz2
Replace boolean test with is None
Diffstat (limited to 'Lib/ftplib.py')
-rw-r--r--Lib/ftplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index 21b9e52..4a3d884 100644
--- a/Lib/ftplib.py
+++ b/Lib/ftplib.py
@@ -659,7 +659,7 @@ class Netrc:
__defacct = None
def __init__(self, filename=None):
- if not filename:
+ if filename is None:
if os.environ.has_key("HOME"):
filename = os.path.join(os.environ["HOME"],
".netrc")