aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-01 16:07:16 +0000
committerRaymond Hettinger <python@rcn.com>2002-06-01 16:07:16 +0000
commit16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1 (patch)
treed48f5e5b73a5124cabe347106a331ad8085c0064 /Lib/netrc.py
parentSF 563203. Replaced 'has_key()' with 'in'. (diff)
downloadcpython-16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1.tar.gz
cpython-16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1.tar.bz2
cpython-16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1.zip
Replace boolean test with is None.
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 9ce7efb060b..316a66c8867 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: