forked from orbit-oss/flask
Make Python 3 happy
This commit is contained in:
parent
6ec83e18dc
commit
52e1c383fa
1 changed files with 2 additions and 2 deletions
|
|
@ -189,7 +189,7 @@ class AppContext(object):
|
||||||
self.pop(exc_value)
|
self.pop(exc_value)
|
||||||
|
|
||||||
if BROKEN_PYPY_CTXMGR_EXIT and exc_type is not None:
|
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):
|
class RequestContext(object):
|
||||||
|
|
@ -395,7 +395,7 @@ class RequestContext(object):
|
||||||
self.auto_pop(exc_value)
|
self.auto_pop(exc_value)
|
||||||
|
|
||||||
if BROKEN_PYPY_CTXMGR_EXIT and exc_type is not None:
|
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):
|
def __repr__(self):
|
||||||
return '<%s \'%s\' [%s] of %s>' % (
|
return '<%s \'%s\' [%s] of %s>' % (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue