summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/__init__.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-03-03 09:46:07 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-03-03 09:46:07 (GMT)
commite869eb1953b1383c5fe4be7ac6d96245553ff1ba (patch)
treeccc6b89aa6bca5b0dc714e1f7f377e28488946c2 /Lib/bsddb/__init__.py
parentff232d723089eb0c743265821db528494a661099 (diff)
downloadcpython-e869eb1953b1383c5fe4be7ac6d96245553ff1ba.zip
cpython-e869eb1953b1383c5fe4be7ac6d96245553ff1ba.tar.gz
cpython-e869eb1953b1383c5fe4be7ac6d96245553ff1ba.tar.bz2
Patch #1112812: Make bsddb/__init__.py more friendly for modulefinder.
Backported to 2.4.
Diffstat (limited to 'Lib/bsddb/__init__.py')
-rw-r--r--Lib/bsddb/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py
index 3ee3441..0fc1892 100644
--- a/Lib/bsddb/__init__.py
+++ b/Lib/bsddb/__init__.py
@@ -65,9 +65,9 @@ import sys, os
# iterator interface is dynamically defined and added using a mixin
# class. old python can't tokenize it due to the yield keyword.
if sys.version >= '2.3':
+ import UserDict
+ from weakref import ref
exec """
-import UserDict
-from weakref import ref
class _iter_mixin(UserDict.DictMixin):
def _make_iter_cursor(self):
cur = self.db.cursor()