From e869eb1953b1383c5fe4be7ac6d96245553ff1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 3 Mar 2005 09:46:07 +0000 Subject: [PATCH] Patch #1112812: Make bsddb/__init__.py more friendly for modulefinder. Backported to 2.4. --- Lib/bsddb/__init__.py | 4 ++-- Misc/NEWS | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py index 3ee34416ddb..0fc18928e1a 100644 --- a/Lib/bsddb/__init__.py +++ b/Lib/bsddb/__init__.py @@ -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() diff --git a/Misc/NEWS b/Misc/NEWS index 92fb2532187..a313d6e64df 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -61,6 +61,8 @@ Extension Modules Library ------- +- Patch #1112812: Make bsddb/__init__.py more friendly for modulefinder. + - Patch #1110248: SYNC_FLUSH the zlib buffer for GZipFile.flush. - Patch #1107973: Allow to iterate over the lines of a tarfile.ExFileObject.