Commit e3a2fef7 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #15289 -- Removed a redundant __getattr__ implementation from the debug...

Fixed #15289 -- Removed a redundant __getattr__ implementation from the debug SQL cursor wrapper. Thanks to Apollo13 for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15516 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent d068a042
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -59,12 +59,6 @@ class CursorDebugWrapper(CursorWrapper):
                extra={'duration':duration, 'sql':sql, 'params':param_list}
            )

    def __getattr__(self, attr):
        if attr in self.__dict__:
            return self.__dict__[attr]
        else:
            return getattr(self.cursor, attr)

    def __iter__(self):
        return iter(self.cursor)