[Python-checkins] r65017 - sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py
benjamin.peterson
python-checkins at python.org
Wed Jul 16 18:04:49 CEST 2008
Author: benjamin.peterson
Date: Wed Jul 16 18:04:19 2008
New Revision: 65017
Log:
fix 2to3 in Python 2.6
Modified:
sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py
Modified: sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py (original)
+++ sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py Wed Jul 16 18:04:19 2008
@@ -6,7 +6,7 @@
from ..fixer_util import Name, attr_chain, any, set
import __builtin__
builtin_names = [name for name in dir(__builtin__)
- if name not in ("__name__", "__doc__")]
+ if name not in ("__name__", "__doc__", "exec", "print")]
# XXX(alexandre): It would be possible to get the modules exports by fetching
# XXX: their __all__ attribute. However, I fear that this would add an additional
More information about the Python-checkins
mailing list