Replace boolean test with is None

This commit is contained in:
Raymond Hettinger 2002-06-01 01:29:16 +00:00
parent 0f4940c0a8
commit 094662a165
4 changed files with 5 additions and 5 deletions

View file

@ -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")