mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00

svn+ssh://pythondev@svn.python.org/python/trunk ................ r65055 | benjamin.peterson | 2008-07-16 21:07:46 -0500 (Wed, 16 Jul 2008) | 13 lines Merged revisions 65053-65054 via svnmerge from svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r65053 | benjamin.peterson | 2008-07-16 21:04:12 -0500 (Wed, 16 Jul 2008) | 1 line massive optimizations for 2to3 (especially fix_imports) from Nick Edds ........ r65054 | benjamin.peterson | 2008-07-16 21:05:09 -0500 (Wed, 16 Jul 2008) | 1 line normalize whitespace ........ ................
17 lines
351 B
Python
17 lines
351 B
Python
"""Fix incompatible imports and module references that must be fixed after
|
|
fix_imports."""
|
|
from . import fix_imports
|
|
|
|
|
|
MAPPING = {
|
|
'whichdb': 'dbm',
|
|
'anydbm': 'dbm',
|
|
}
|
|
|
|
|
|
class FixImports2(fix_imports.FixImports):
|
|
PATTERN = "|".join((fix_imports.build_pattern(MAPPING)))
|
|
|
|
order = "post"
|
|
|
|
mapping = MAPPING
|