summaryrefslogtreecommitdiffstats
path: root/Lib/netrc.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/netrc.py')
-rw-r--r--Lib/netrc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/netrc.py b/Lib/netrc.py
index 9ce7efb..316a66c 100644
--- a/Lib/netrc.py
+++ b/Lib/netrc.py
@@ -21,7 +21,7 @@ class NetrcParseError(Exception):
class netrc:
def __init__(self, file=None):
- if not file:
+ if file is None:
try:
file = os.path.join(os.environ['HOME'], ".netrc")
except KeyError: