mirror of
https://github.com/django/django.git
synced 2025-09-27 04:29:17 +00:00
Removed unused branch in __getattr__() of Oracle and MySQL cursor wrappers.
This commit is contained in:
parent
18db55bb31
commit
fc2dee6908
2 changed files with 2 additions and 8 deletions
|
@ -84,9 +84,6 @@ class CursorWrapper:
|
|||
raise
|
||||
|
||||
def __getattr__(self, attr):
|
||||
if attr in self.__dict__:
|
||||
return self.__dict__[attr]
|
||||
else:
|
||||
return getattr(self.cursor, attr)
|
||||
|
||||
def __iter__(self):
|
||||
|
|
|
@ -518,9 +518,6 @@ class FormatStylePlaceholderCursor:
|
|||
return VariableWrapper(self.cursor.arrayvar(*args))
|
||||
|
||||
def __getattr__(self, attr):
|
||||
if attr in self.__dict__:
|
||||
return self.__dict__[attr]
|
||||
else:
|
||||
return getattr(self.cursor, attr)
|
||||
|
||||
def __iter__(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue