Skip to content
Myr

Traceback hack now works for pypy

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 9e5d083 · Browse files · 1 file+6 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+6 added−1 removed

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:jinja2/debug.py+6 added-1 removed
59 unmodified lines
60 proxy = TracebackFrameProxy(frame)61 if tproxy is None:62 return proxy63 def operation_handler(operation, *args, **kwargs):64 if operation in ('__getattribute__', '__getattr__'):65 return getattr(proxy, args[0])66 elif operation == '__setattr__':67 proxy.__setattr__(*args, **kwargs)68 else:64 return getattr(proxy, operation)(*args, **kwargs)69 return getattr(proxy, operation)(*args, **kwargs)70 return tproxy(TracebackType, operation_handler)717273class ProcessedTraceback(object):
260 unmodified lines