summaryrefslogtreecommitdiff
path: root/jinja2/_compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'jinja2/_compat.py')
-rw-r--r--jinja2/_compat.py4
1 files 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__('<dummy_class>', None, {})
+ return metaclass('temporary_class', None, {})
try: