diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2013-05-20 09:00:04 +0100 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2013-05-20 09:00:04 +0100 |
commit | 03bea567c707509c88971b76666f69749bc53469 (patch) | |
tree | 8126c5f830d4227350e4e5a476e7a8cd9bbd1680 | |
parent | 994404a6926e07fb63e78b0742d8907cfdeed4c4 (diff) | |
download | jinja2-03bea567c707509c88971b76666f69749bc53469.tar.gz |
Renamed helper classes in with_metaclass
-rw-r--r-- | jinja2/_compat.py | 4 |
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: |