mirror of
https://github.com/python/cpython
synced 2024-10-09 03:18:14 +00:00
fix import to work with either module name.
This commit is contained in:
parent
6e57c2a653
commit
6564ca72ad
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue