]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Fixed MethodType being wrong on 3.x
authorArmin Ronacher <armin.ronacher@active-4.com>
Sat, 18 May 2013 11:44:03 +0000 (12:44 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sat, 18 May 2013 11:44:03 +0000 (12:44 +0100)
jinja2/utils.py

index d8be8358f918dcc5a6d9fd9729d2b662286c7749..3440979577afd8f5ec40704f2e1a1283b9699628 100644 (file)
@@ -76,7 +76,7 @@ def _func():
     yield None
 FunctionType = type(_func)
 GeneratorType = type(_func())
-MethodType = type(_C.method)
+MethodType = type(_C().method)
 CodeType = type(_C.method.__code__)
 try:
     raise TypeError()