Remove unnecessary TabData.__getattr__ code

__getattribute__ is used in that case; see
https://github.com/PyCQA/pylint/issues/979
This commit is contained in:
Florian Bruhin 2016-07-07 09:23:03 +02:00
parent 09f025628f
commit 2bd07937e5

View File

@ -87,9 +87,6 @@ class TabData:
}
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:
return self._data[attr]
except KeyError: