Convert all helper_ properties to get_ methods.

This commit is contained in:
Mike Auty
2018-03-09 00:47:00 +00:00
parent 6d618903d5
commit bc8429a2b0
9 changed files with 133 additions and 133 deletions
+2 -2
View File
@@ -584,9 +584,9 @@ class Struct(interfaces.objects.ObjectInterface):
vollog.debug("Deprecated non-helper attribute {} requested from class override {}".format(attr,
self.vol.type_name))
# Uncomment the following line if we want to prohibit using non-helper properties
# return self.__getattr_(attr)
# return self.__getattr__(attr)
# Change this to an attribute error if we want to prohibit rather than deprecate member collisisons
# Change this to an attribute error if we want to prohibit rather than deprecate member collisisons
return object.__getattribute__(self, attr)
def __getattr__(self, attr: str) -> typing.Any: