mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +00:00
Replace boolean test with is None
This commit is contained in:
parent
0f4940c0a8
commit
094662a165
4 changed files with 5 additions and 5 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue