Browse files

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

  • Loading branch information...
1 parent f34c028 commit 3e9f4e254b5757d80218c0d8077bd44465365489 @mitsuhiko mitsuhiko committed Oct 8, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 flask/
@@ -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 =
@@ -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 =
if self.session is None:
self.session =

0 comments on commit 3e9f4e2

Please sign in to comment.