Skip to content
Myr

Merge pull request #1032 from cgar/spelling

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

few mispelling errors

authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parents 033b093, 52fa195 · Browse files · 3 files+3 added−3 removed
This commit

State

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

Diff stats

3 files+3 added−3 removed

  • other:+3 added−3 removed

3 files+3 added−3 removed

modified:docs/tutorial/dbcon.rst+1 added-1 removed
51 unmodified lines
52every time the app context tears down. So what does this mean?53Essentially the app context is created before the request comes in and is54destroyed (teared down) whenever the request finishes. A teardown can55happen because of two reasons: either everything went well (the error56parameter will be `None`) or an exception happend in which case the error56parameter will be `None`) or an exception happened in which case the error57is passed to the teardown function.5859Curious about what these contexts mean? Have a look at the60:ref:`app-context` documentation to learn more.
18 unmodified lines
modified:flask/_compat.py+1 added-1 removed
75 unmodified lines
76# Certain versions of pypy have a bug where clearing the exception stack77# breaks the __exit__ function in a very peculiar way. This is currently78# true for pypy 2.2.1 for instance. The second level of exception blocks79# is necessary because pypy seems to forget to check if an exception80# happend until the next bytecode instruction?80# happened until the next bytecode instruction?81BROKEN_PYPY_CTXMGR_EXIT = False82if hasattr(sys, 'pypy_version_info'):83 class _Mgr(object):84 def __enter__(self):
13 unmodified lines
modified:flask/helpers.py+1 added-1 removed
660 unmodified lines
661 'module "%s". This can happen because the '662 'module came from an import hook that does '663 'not provide file name information or because '664 'it\'s a namespace package. In this case '665 'the root path needs to be explictly '665 'the root path needs to be explicitly '666 'provided.' % import_name)667668 # filepath is import_name.py for a module, or __init__.py for a package.669 return os.path.dirname(os.path.abspath(filepath))
230 unmodified lines