summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2005-06-09 07:11:42 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2005-06-09 07:11:42 (GMT)
commit6564ca72add45b1719ed6ff331022eb72a60340d (patch)
tree7592cf4f892ee14d0e6328b99ce55bce272e6d0b /Lib/bsddb
parent6e57c2a6532d6f1158586232452a3b440e975b98 (diff)
downloadcpython-6564ca72add45b1719ed6ff331022eb72a60340d.zip
cpython-6564ca72add45b1719ed6ff331022eb72a60340d.tar.gz
cpython-6564ca72add45b1719ed6ff331022eb72a60340d.tar.bz2
fix import to work with either module name.
Diffstat (limited to 'Lib/bsddb')
-rw-r--r--Lib/bsddb/test/test_compare.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_compare.py b/Lib/bsddb/test/test_compare.py
index 63afb4f..59a45ec 100644
--- a/Lib/bsddb/test/test_compare.py
+++ b/Lib/bsddb/test/test_compare.py
@@ -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