/Lib/lib2to3/fixes/fix_imports2.py

http://unladen-swallow.googlecode.com/ · Python · 16 lines · 8 code · 6 blank · 2 comment · 0 complexity · 15274809df396bec14aeafccd2ab9875 MD5 · raw file

  1. """Fix incompatible imports and module references that must be fixed after
  2. fix_imports."""
  3. from . import fix_imports
  4. MAPPING = {
  5. 'whichdb': 'dbm',
  6. 'anydbm': 'dbm',
  7. }
  8. class FixImports2(fix_imports.FixImports):
  9. run_order = 7
  10. mapping = MAPPING