summaryrefslogtreecommitdiffstats
path: root/Demo/newmetaclasses/Enum.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-27 20:34:09 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-27 20:34:09 (GMT)
commite81f5ef1ebf57e9df2cfefabb5c5fa67defa6d2f (patch)
tree13f435b9d8f0c352536fb92dadcb25aca673149e /Demo/newmetaclasses/Enum.py
parent76262356333f4bef993c61436c34ea50ccf53f28 (diff)
downloadcpython-e81f5ef1ebf57e9df2cfefabb5c5fa67defa6d2f.zip
cpython-e81f5ef1ebf57e9df2cfefabb5c5fa67defa6d2f.tar.gz
cpython-e81f5ef1ebf57e9df2cfefabb5c5fa67defa6d2f.tar.bz2
Remove __metaclass__ remains.
Diffstat (limited to 'Demo/newmetaclasses/Enum.py')
-rw-r--r--Demo/newmetaclasses/Enum.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Demo/newmetaclasses/Enum.py b/Demo/newmetaclasses/Enum.py
index 99b6fe8..3ff8ddd 100644
--- a/Demo/newmetaclasses/Enum.py
+++ b/Demo/newmetaclasses/Enum.py
@@ -82,11 +82,11 @@ class EnumInstance(int):
def __str__(self):
return "%s.%s" % (self.__classname, self.__enumname)
-class Enum:
- __metaclass__ = EnumMetaclass
+class Enum(metaclass=EnumMetaclass):
+ pass
-class FullEnum:
- __metaclass__ = FullEnumMetaclass
+class FullEnum(metaclass=FullEnumMetaclass):
+ pass
def _test():