mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-23 19:19:31 +01:00
utils: add a default to DeprecatedAttributesObject so that it works as is
This commit is contained in:
parent
f97db31533
commit
ed33c8d580
2
utils.py
2
utils.py
@ -595,6 +595,8 @@ class DeprecatedAttributesObject():
|
||||
"""
|
||||
Object implementing deprecated attributes and warnings on access.
|
||||
"""
|
||||
def __init__(self):
|
||||
self.deprecated_attributes = {}
|
||||
|
||||
def __getattribute__(self, attr):
|
||||
# Note: "self.deprecated_attributes" calls this too, so the != check is
|
||||
|
Loading…
Reference in New Issue
Block a user