fix import to work with either module name.

This commit is contained in:
Gregory P. Smith 2005-06-09 07:11:42 +00:00
parent 6e57c2a653
commit 6564ca72ad
1 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,12 @@ import test_all
from cStringIO import StringIO
import unittest
from bsddb3 import db
try:
# For Pythons w/distutils pybsddb
from bsddb3 import db, dbshelve
except ImportError:
# For Python 2.3
from bsddb import db, dbshelve
lexical_cmp = cmp