[Python-checkins] r63661 - sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py

georg.brandl python-checkins at python.org
Mon May 26 12:26:20 CEST 2008


Author: georg.brandl
Date: Mon May 26 12:26:20 2008
New Revision: 63661

Log:
Add import fixes for dbm package.


Modified:
   sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py

Modified: sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py	(original)
+++ sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py	Mon May 26 12:26:20 2008
@@ -150,6 +150,12 @@
                        'error', 'exit', 'exit_thread', 'get_ident',
                        'interrupt_main', 'stack_size', 'start_new',
                        'start_new_thread']),
+           'whichdb': ('dbm', ['whichdb']),
+           'anydbm': ('dbm', ['error', 'open']),
+           'dbhash': ('dbm.bsd', ['error', 'open']),
+           'dumbdbm': ('dbm.dumb', ['error', 'open', '_Database']),
+           'dbm': ('dbm.ndbm', ['error', 'open', 'library']),
+           'gdbm': ('dbm.gnu', ['error', 'open', 'open_flags']),
 }
 
 


More information about the Python-checkins mailing list