[Python-checkins] python/dist/src/Lib/bsddb __init__.py,1.15,1.16

loewis at users.sourceforge.net loewis at users.sourceforge.net
Thu Mar 3 10:46:11 CET 2005


Update of /cvsroot/python/python/dist/src/Lib/bsddb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21064/Lib/bsddb

Modified Files:
	__init__.py 
Log Message:
Patch #1112812: Make bsddb/__init__.py more friendly for modulefinder.
Backported to 2.4.


Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bsddb/__init__.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- __init__.py	27 Jun 2004 22:56:42 -0000	1.15
+++ __init__.py	3 Mar 2005 09:46:06 -0000	1.16
@@ -65,9 +65,9 @@
 # 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()



More information about the Python-checkins mailing list