Skip to content
Myr

Merge branch '0.11-maintenance'

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

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents 4f83f70, 6e46d0c · Browse files · 2 files+20 added−5 removed
This commit

State

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

Diff stats

2 files+20 added−5 removed

  • other:+20 added−5 removed

2 files+20 added−5 removed

modified:flask/_compat.py+13 added-5 removed
63 unmodified lines
64 return type.__new__(metaclass, 'temporary_class', (), {})656667# Certain versions of pypy have a bug where clearing the exception stack68# breaks the __exit__ function in a very peculiar way. This is currently69# true for pypy 2.2.1 for instance. The second level of exception blocks70# is necessary because pypy seems to forget to check if an exception71# happened until the next bytecode instruction?68# breaks the __exit__ function in a very peculiar way. The second level of69# exception blocks is necessary because pypy seems to forget to check if an70# exception happened until the next bytecode instruction?71#72# Relevant PyPy bugfix commit:73# https://bitbucket.org/pypy/pypy/commits/77ecf91c635a287e88e60d8ddb0f4e9df400330174# According to ronan on #pypy IRC, it is released in PyPy2 2.3 and later75# versions.76#77# Ubuntu 14.04 has PyPy 2.2.1, which does exhibit this bug.78BROKEN_PYPY_CTXMGR_EXIT = False79if hasattr(sys, 'pypy_version_info'):80 class _Mgr(object):81 def __enter__(self):82 return self83 def __exit__(self, *args):84 if hasattr(sys, 'exc_clear'):85 # Python 3 (PyPy3) doesn't have exc_clear78 sys.exc_clear()86 sys.exc_clear()87 try:88 try:89 with _Mgr():90 raise AssertionError()
6 unmodified lines
modified:CHANGES+7 added
10 unmodified lines
11 See pull request ``#1849``.12- Make ``flask.safe_join`` able to join multiple paths like ``os.path.join``13 (pull request ``#1730``).1415Version 0.11.216--------------1718Bugfix release, unreleased1920- Fix crash when running under PyPy3, see pull request ``#1814``.2122Version 0.11.123--------------2425Bugfix release, released on June 7th 2016.
564 unmodified lines