diff options
Diffstat (limited to 'Demo/newmetaclasses/Enum.py')
-rw-r--r-- | Demo/newmetaclasses/Enum.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/newmetaclasses/Enum.py b/Demo/newmetaclasses/Enum.py index 0f7f913..99b6fe8 100644 --- a/Demo/newmetaclasses/Enum.py +++ b/Demo/newmetaclasses/Enum.py @@ -20,7 +20,7 @@ class EnumMetaclass(type): def __init__(cls, name, bases, dict): super(EnumMetaclass, cls).__init__(name, bases, dict) cls._members = [] - for attr in list(dict.keys()): + for attr in dict.keys(): if not (attr.startswith('__') and attr.endswith('__')): enumval = EnumInstance(name, attr, dict[attr]) setattr(cls, attr, enumval) |