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:
commit
963d5e11cc
2
utils.py
2
utils.py
@ -595,6 +595,8 @@ class DeprecatedAttributesObject():
|
|||||||
"""
|
"""
|
||||||
Object implementing deprecated attributes and warnings on access.
|
Object implementing deprecated attributes and warnings on access.
|
||||||
"""
|
"""
|
||||||
|
def __init__(self):
|
||||||
|
self.deprecated_attributes = {}
|
||||||
|
|
||||||
def __getattribute__(self, attr):
|
def __getattribute__(self, attr):
|
||||||
# Note: "self.deprecated_attributes" calls this too, so the != check is
|
# Note: "self.deprecated_attributes" calls this too, so the != check is
|
||||||
|
Loading…
Reference in New Issue
Block a user