3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

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

Merge commit 'ed33c8d5804387245b6b012cd1aaabaca173262a' into devel
This commit is contained in:
James Lu 2017-06-29 18:13:55 -07:00
commit 963d5e11cc

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