Remove __metaclass__ remains.
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 @@
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 @@
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():