Kaydet (Commit) 58eadbaf authored tarafından Skip Montanaro's avatar Skip Montanaro

move import into function to avoid having to add an __all__ list...

üst 59ade080
"""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.
......@@ -15,6 +13,8 @@ def whichdb(filename):
database using that module may still fail.
"""
import struct
# Check for dbm first -- this has a .pag and a .dir file
try:
f = open(filename + ".pag", "rb")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment