Run 2to3's fix_has_key over distutils.

This commit is contained in:
Collin Winter 2007-09-01 20:37:22 +00:00
parent 0470689215
commit 2ac0121305
3 changed files with 4 additions and 4 deletions

View file

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