From: Armin Ronacher Date: Sat, 18 May 2013 11:44:03 +0000 (+0100) Subject: Fixed MethodType being wrong on 3.x X-Git-Tag: 2.7~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5447aa736a54da4a7e6115bb63a324b122fd3d06;p=thirdparty%2Fjinja.git Fixed MethodType being wrong on 3.x --- diff --git a/jinja2/utils.py b/jinja2/utils.py index d8be8358..34409795 100644 --- a/jinja2/utils.py +++ b/jinja2/utils.py @@ -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()