Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated a comment that was misleading with recent flask sqlalchemy in…

…stallations
  • Loading branch information...
commit 3e9f4e254b5757d80218c0d8077bd44465365489 1 parent f34c028
@mitsuhiko authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 flask/ctx.py
View
5 flask/ctx.py
@@ -213,7 +213,7 @@ def push(self):
# on the stack. The rationale is that you want to access that
# information under debug situations. However if someone forgets to
# pop that context again we want to make sure that on the next push
- # it's invalidated otherwise we run at risk that something leaks
+ # it's invalidated, otherwise we run at risk that something leaks
# memory. This is usually only a problem in testsuite since this
# functionality is not active in production environments.
top = _request_ctx_stack.top
@@ -234,7 +234,8 @@ def push(self):
# Open the session at the moment that the request context is
# available. This allows a custom open_session method to use the
- # request context (e.g. flask-sqlalchemy).
+ # request context (e.g. code that access database information
+ # stored on `g` instead of the appcontext).
self.session = self.app.open_session(self.request)
if self.session is None:
self.session = self.app.make_null_session()
Please sign in to comment.
Something went wrong with that request. Please try again.