]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Renamed helper classes in with_metaclass
authorArmin Ronacher <armin.ronacher@active-4.com>
Mon, 20 May 2013 08:00:04 +0000 (09:00 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Mon, 20 May 2013 08:00:04 +0000 (09:00 +0100)
jinja2/_compat.py

index ccfb18e804d24102de4db4165176903fabe2eb21..97f6354be5a09a766a8988bd24b882ae4eff38d1 100644 (file)
@@ -98,14 +98,14 @@ def with_metaclass(meta, *bases):
     #
     # This has the advantage over six.with_metaclass in that it does not
     # introduce dummy classes into the final MRO.
-    class __metaclass__(meta):
+    class metaclass(meta):
         __call__ = type.__call__
         __init__ = type.__init__
         def __new__(cls, name, this_bases, d):
             if this_bases is None:
                 return type.__new__(cls, name, (), d)
             return meta(name, bases, d)
-    return __metaclass__('<dummy_class>', None, {})
+    return metaclass('temporary_class', None, {})
 
 
 try: