[Python-checkins] r63362 - in sandbox/trunk/2to3/lib2to3: fixes/fix_imports.py tests/test_fixers.py
alexandre.vassalotti
python-checkins at python.org
Fri May 16 09:17:53 CEST 2008
Author: alexandre.vassalotti
Date: Fri May 16 09:17:53 2008
New Revision: 63362
Log:
Added the repr module import fixer.
Modified:
sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py
sandbox/trunk/2to3/lib2to3/tests/test_fixers.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 Fri May 16 09:17:53 2008
@@ -44,7 +44,8 @@
'ParsingError', 'MissingSectionHeaderError',
'ConfigParser', 'SafeConfigParser',
'RawConfigParser', 'DEFAULTSECT',
- 'MAX_INTERPOLATION_DEPTH'])
+ 'MAX_INTERPOLATION_DEPTH']),
+ 'repr': ('reprlib', ['Repr', 'repr'])
}
Modified: sandbox/trunk/2to3/lib2to3/tests/test_fixers.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/tests/test_fixers.py (original)
+++ sandbox/trunk/2to3/lib2to3/tests/test_fixers.py Fri May 16 09:17:53 2008
@@ -1418,6 +1418,7 @@
"ForkingMixIn"
#XXX: This is failing. Why?? "BaseServer"
]),
+ "repr": ("reprlib", ["Repr", "repr"]),
}
def test_import_module(self):
More information about the Python-checkins
mailing list