Skip to content

Commit

Permalink
werkzeug.local: fix Proxy.{__enter__,__exit__,__coerce__}
Browse files Browse the repository at this point in the history
werkzeug.local.Proxy.{__enter__,__exit__,__coerce__} were not implemented
correctly thus triggering "RuntimeError: maximum recursion depth exceeded"

Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
  • Loading branch information
andreypopp authored and mitsuhiko committed Mar 5, 2012
1 parent 3b045b4 commit cbd8ec9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions werkzeug/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,6 @@ def __delslice__(self, i, j):
__oct__ = lambda x: oct(x._get_current_object())
__hex__ = lambda x: hex(x._get_current_object())
__index__ = lambda x: x._get_current_object().__index__()
__coerce__ = lambda x, o: x.__coerce__(x, o)
__enter__ = lambda x: x.__enter__()
__exit__ = lambda x, *a, **kw: x.__exit__(*a, **kw)
__coerce__ = lambda x, o: x._get_current_object().__coerce__(x, o)
__enter__ = lambda x: x._get_current_object().__enter__()
__exit__ = lambda x, *a, **kw: x._get_current_object().__exit__(*a, **kw)

0 comments on commit cbd8ec9

Please sign in to comment.