From 161b7d2024f55918dbcdb5bba62185b90674f60c 2012-07-15 16:55:56 From: Bradley M. Froehle Date: 2012-07-15 16:55:56 Subject: [PATCH] Skip `has_key` when running 2to3. --- diff --git a/setup.py b/setup.py index 9074f38..42d02d4 100755 --- a/setup.py +++ b/setup.py @@ -269,10 +269,11 @@ if 'setuptools' in sys.modules: # so we explicitly disable some 2to3 fixes to be sure we aren't forgetting # anything. setuptools_extra_args['use_2to3_exclude_fixers'] = [ - 'lib2to3.fixes.fix_except', 'lib2to3.fixes.fix_apply', - 'lib2to3.fixes.fix_repr', + 'lib2to3.fixes.fix_except', + 'lib2to3.fixes.fix_has_key', 'lib2to3.fixes.fix_next', + 'lib2to3.fixes.fix_repr', ] from setuptools.command.build_py import build_py setup_args['cmdclass'] = {'build_py': record_commit_info('IPython', build_cmd=build_py)}