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

View file

@ -7,7 +7,12 @@
from cStringIO import StringIO from cStringIO import StringIO
import unittest 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 lexical_cmp = cmp