Remove unnecessary TabData.__getattr__ code
__getattribute__ is used in that case; see https://github.com/PyCQA/pylint/issues/979
This commit is contained in:
parent
09f025628f
commit
2bd07937e5
@ -87,9 +87,6 @@ class TabData:
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
if attr.startswith('_'):
|
|
||||||
# WORKAROUND for https://github.com/PyCQA/pylint/issues/979
|
|
||||||
return super().__getattr__(attr) # pylint: disable=no-member
|
|
||||||
try:
|
try:
|
||||||
return self._data[attr]
|
return self._data[attr]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user