3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

utils: add a default to DeprecatedAttributesObject so that it works as is

This commit is contained in:
James Lu 2017-06-02 17:26:54 -07:00
parent f97db31533
commit ed33c8d580

View File

@ -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