From 03bea567c707509c88971b76666f69749bc53469 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 20 May 2013 09:00:04 +0100 Subject: Renamed helper classes in with_metaclass --- jinja2/_compat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jinja2/_compat.py b/jinja2/_compat.py index ccfb18e..97f6354 100644 --- a/jinja2/_compat.py +++ b/jinja2/_compat.py @@ -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__('', None, {}) + return metaclass('temporary_class', None, {}) try: -- cgit v1.2.1