Commit 59cdf7bf authored by Gregory P. Smith's avatar Gregory P. Smith

fix import to work with either module name.

parent 6fbf3c5e
......@@ -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
......
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