~pythonregexp2.7/python/issue2636-01+09-01-01

« back to all changes in this revision

Viewing changes to Lib/lib2to3/fixes/fix_imports2.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 00:02:12 UTC
  • mfrom: (39022.1.34 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922000212-7r0q4f4ugiq57jph
Merged in changes from the Atomic Grouping / Possessive Qualifiers branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""Fix incompatible imports and module references that must be fixed after
 
2
fix_imports."""
 
3
from . import fix_imports
 
4
 
 
5
 
 
6
MAPPING = {
 
7
            'whichdb': 'dbm',
 
8
            'anydbm': 'dbm',
 
9
          }
 
10
 
 
11
 
 
12
class FixImports2(fix_imports.FixImports):
 
13
    PATTERN = "|".join((fix_imports.build_pattern(MAPPING)))
 
14
 
 
15
    order = "post"
 
16
 
 
17
    mapping = MAPPING