diff options
Diffstat (limited to 'Lib/ftplib.py')
-rw-r--r-- | Lib/ftplib.py | 2 |
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") |