summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/fixes/fix_imports2.py
blob: e82f7e480e3f03150da145e709d93d9f57402fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""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