1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

boulder-oracle-sprint: Fixed #3835 by making CursorDebugWrapper

iterable, as it should have been.


git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4840 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Boulder Sprinters 2007-03-28 20:55:46 +00:00
parent c4eb6bf708
commit 05189a61e9

View File

@ -33,6 +33,9 @@ class CursorDebugWrapper(object):
'time': "%.3f" % (stop - start), 'time': "%.3f" % (stop - start),
}) })
def __iter__(self):
return self.cursor.__iter__()
def __getattr__(self, attr): def __getattr__(self, attr):
if self.__dict__.has_key(attr): if self.__dict__.has_key(attr):
return self.__dict__[attr] return self.__dict__[attr]