summaryrefslogtreecommitdiffstats
path: root/Demo
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
parent76262356333f4bef993c61436c34ea50ccf53f28 (diff)
downloadcpython-e81f5ef1ebf57e9df2cfefabb5c5fa67defa6d2f.zip
cpython-e81f5ef1ebf57e9df2cfefabb5c5fa67defa6d2f.tar.gz
cpython-e81f5ef1ebf57e9df2cfefabb5c5fa67defa6d2f.tar.bz2
Remove __metaclass__ remains.
Diffstat (limited to 'Demo')
-rw-r--r--Demo/newmetaclasses/Eiffel.py4
-rw-r--r--Demo/newmetaclasses/Enum.py8
2 files changed, 6 insertions, 6 deletions
diff --git a/Demo/newmetaclasses/Eiffel.py b/Demo/newmetaclasses/Eiffel.py
index 337ad93..15fa58a 100644
--- a/Demo/newmetaclasses/Eiffel.py
+++ b/Demo/newmetaclasses/Eiffel.py
@@ -85,8 +85,8 @@ class EiffelMetaClass2(EiffelBaseMetaClass):
make_eiffel_method = EiffelDescriptor
def _test(metaclass):
- class Eiffel:
- __metaclass__ = metaclass
+ class Eiffel(metaclass=metaclass):
+ pass
class Test(Eiffel):
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():