From ed33c8d5804387245b6b012cd1aaabaca173262a Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 2 Jun 2017 17:26:54 -0700 Subject: [PATCH] utils: add a default to DeprecatedAttributesObject so that it works as is --- utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.py b/utils.py index 7c9c7a8..48b9033 100644 --- a/utils.py +++ b/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