diff options
author | Marc Bonnici <marc.bonnici@arm.com> | 2018-07-02 16:24:14 +0100 |
---|---|---|
committer | Marc Bonnici <marc.bonnici@arm.com> | 2018-07-06 14:39:41 +0100 |
commit | 4d1c03cc5ce8ddebba4d5d98c73d7f52ef159be4 (patch) | |
tree | c676b1ec758846ae6ef26d44dc52d7c2542d820a /wa/utils | |
parent | cbc7b2647fcefcf30c3bf98ff03f18fca28a8f7d (diff) |
utils/types: Rename `cls` argument
Diffstat (limited to 'wa/utils')
-rw-r--r-- | wa/utils/types.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wa/utils/types.py b/wa/utils/types.py index 7ec9cb5b..823cf0f4 100644 --- a/wa/utils/types.py +++ b/wa/utils/types.py @@ -586,10 +586,10 @@ class _EnumMeta(type): def __str__(cls): return str(cls.levels) - def __getattr__(self, name): + def __getattr__(cls, name): name = name.lower() - if name in self.__dict__: - return self.__dict__[name] + if name in cls.__dict__: + return cls.__dict__[name] def enum(args, start=0, step=1): |