Skip to content
Myr

Fixed MethodType being wrong on 3.x

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 7372170 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja2/utils.py+1 added-1 removed
74 unmodified lines
75def _func():76 yield None77FunctionType = type(_func)78GeneratorType = type(_func())79MethodType = type(_C.method)79MethodType = type(_C().method)80CodeType = type(_C.method.__code__)81try:82 raise TypeError()83except TypeError:
495 unmodified lines