From 52e1c383faf44b88407f3b9a36293c8ab98b78a3 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 26 Jan 2014 17:47:16 +0000 Subject: [PATCH] Make Python 3 happy --- flask/ctx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flask/ctx.py b/flask/ctx.py index 406d80c5..b9c933e9 100644 --- a/flask/ctx.py +++ b/flask/ctx.py @@ -189,7 +189,7 @@ class AppContext(object): self.pop(exc_value) if BROKEN_PYPY_CTXMGR_EXIT and exc_type is not None: - raise exc_type, exc_value, tb + reraise(exc_type, exc_value, tb) class RequestContext(object): @@ -395,7 +395,7 @@ class RequestContext(object): self.auto_pop(exc_value) if BROKEN_PYPY_CTXMGR_EXIT and exc_type is not None: - raise exc_type, exc_value, tb + reraise(exc_type, exc_value, tb) def __repr__(self): return '<%s \'%s\' [%s] of %s>' % (