[Python-checkins] CVS: python/dist/src/Lib whichdb.py,1.8,1.9
Skip Montanaro
montanaro@users.sourceforge.net
Wed, 28 Feb 2001 20:13:53 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv14641
Modified Files:
whichdb.py
Log Message:
move import into function to avoid having to add an __all__ list...
Index: whichdb.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/whichdb.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** whichdb.py 2000/08/04 08:46:59 1.8
--- whichdb.py 2001/03/01 04:13:51 1.9
***************
*** 1,6 ****
"""Guess which db package to use to open a db file."""
- import struct
-
def whichdb(filename):
"""Guess which db package to use to open a db file.
--- 1,4 ----
***************
*** 15,18 ****
--- 13,18 ----
database using that module may still fail.
"""
+
+ import struct
# Check for dbm first -- this has a .pag and a .dir file