Python 3.5 compatibility
Markus Gerstel
2 years ago
335 | 335 |
if key in self._extras:
|
336 | 336 |
return self._extras[key]
|
337 | 337 |
if not hasattr(self, key):
|
338 | |
raise KeyError(f"Unknown attribute {key}")
|
|
338 |
raise KeyError("Unknown attribute {key}".format(key=key))
|
339 | 339 |
return getattr(self, key)
|
340 | 340 |
|
341 | 341 |
def __eq__(self, other):
|