mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Run 2to3's fix_has_key over distutils.
This commit is contained in:
parent
0470689215
commit
2ac0121305
3 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@ class upload(Command):
|
|||
raise DistutilsOptionError(
|
||||
"Must use --sign for --identity to have meaning"
|
||||
)
|
||||
if os.environ.has_key('HOME'):
|
||||
if 'HOME' in os.environ:
|
||||
rc = os.path.join(os.environ['HOME'], '.pypirc')
|
||||
if os.path.exists(rc):
|
||||
self.announce('Using PyPI login from %s' % rc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue