cpython/Lib/lib2to3/fixes/fix_imports2.py

18 lines
387 B
Python
Raw Normal View History

"""Fix incompatible imports and module references that must be fixed after
fix_imports."""
from . import fix_imports
MAPPING = {
'whichdb': ('dbm', ['whichdb']),
'anydbm': ('dbm', ['error', 'open']),
}
class FixImports2(fix_imports.FixImports):
PATTERN = "|".join((fix_imports.build_pattern(MAPPING)))
order = "post"
mapping = MAPPING