mirror of
https://github.com/python/cpython.git
synced 2025-10-25 18:54:53 +00:00
18 lines
387 B
Python
18 lines
387 B
Python
|
|
"""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
|