diff options
Diffstat (limited to 'Demo/metaclasses/Enum.py')
-rw-r--r-- | Demo/metaclasses/Enum.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/metaclasses/Enum.py b/Demo/metaclasses/Enum.py index 8d402db..eb52d79 100644 --- a/Demo/metaclasses/Enum.py +++ b/Demo/metaclasses/Enum.py @@ -42,7 +42,7 @@ class EnumMetaClass: self.__name__ = name self.__bases__ = bases self.__dict = {} - for key, value in list(dict.items()): + for key, value in dict.items(): self.__dict[key] = EnumInstance(name, key, value) def __getattr__(self, name): @@ -80,7 +80,7 @@ class EnumMetaClass: s = s + '(' + string.join([x.__name__ for x in self.__bases__], ", ") + ')' if self.__dict: list = [] - for key, value in list(self.__dict.items()): + for key, value in self.__dict.items(): list.append("%s: %s" % (key, int(value))) s = "%s: {%s}" % (s, string.join(list, ", ")) return s |