mirror of
https://github.com/python/cpython.git
synced 2024-12-04 23:34:42 +08:00
Patch #1112812: Make bsddb/__init__.py more friendly for modulefinder.
Backported to 2.4.
This commit is contained in:
parent
ff232d7230
commit
e869eb1953
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user