Permalink
Browse files

duh

  • Loading branch information...
1 parent 554e772 commit 14a6f548da5db9a6f79d6afb1beb17d838c10740 @pjenvey pjenvey committed Aug 30, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 beaker/docs/sessions.rst
View
5 beaker/docs/sessions.rst
@@ -51,10 +51,7 @@ Complete example using a basic WSGI app with sessions::
session = environ['beaker.session']
# Check to see if a value is in the session
- if 'logged_in' in session:
- user = True
- else:
- user = False
+ user = 'logged_in' in session
# Set some other session variable
session['user_id'] = 10

0 comments on commit 14a6f54

Please sign in to comment.