Commit 512c8411 authored by Petr Viktorin's avatar Petr Viktorin

2to3: Run the 'has_key' fixer

parent cb6278ab
lib2to3.fixes.fix_basestring lib2to3.fixes.fix_basestring
lib2to3.fixes.fix_dict lib2to3.fixes.fix_dict
lib2to3.fixes.fix_future lib2to3.fixes.fix_future
lib2to3.fixes.fix_has_key
lib2to3.fixes.fix_import lib2to3.fixes.fix_import
lib2to3.fixes.fix_imports lib2to3.fixes.fix_imports
lib2to3.fixes.fix_isinstance lib2to3.fixes.fix_isinstance
......
...@@ -164,7 +164,7 @@ def _set_configuration_nodistutils(env): ...@@ -164,7 +164,7 @@ def _set_configuration_nodistutils(env):
env.AppendUnique(PYEXTLINKFLAGS = env['PYEXT_ALLOW_UNDEFINED']) env.AppendUnique(PYEXTLINKFLAGS = env['PYEXT_ALLOW_UNDEFINED'])
def ifnotset(env, name, value): def ifnotset(env, name, value):
if not env.has_key(name): if name not in env:
env[name] = value env[name] = value
def set_configuration(env, use_distutils): def set_configuration(env, use_distutils):
...@@ -205,7 +205,7 @@ def generate(env): ...@@ -205,7 +205,7 @@ def generate(env):
"""Add Builders and construction variables for python extensions to an """Add Builders and construction variables for python extensions to an
Environment.""" Environment."""
if not env.has_key('PYEXT_USE_DISTUTILS'): if 'PYEXT_USE_DISTUTILS' not in env:
env['PYEXT_USE_DISTUTILS'] = False env['PYEXT_USE_DISTUTILS'] = False
# This sets all constructions variables used for pyext builders. # This sets all constructions variables used for pyext builders.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment