From 5447aa736a54da4a7e6115bb63a324b122fd3d06 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 18 May 2013 12:44:03 +0100 Subject: [PATCH] Fixed MethodType being wrong on 3.x --- jinja2/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.47.2