Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

handle reissue_time=None properly

  • Loading branch information...
commit b2dd47336c200bbbfea31526f85652226c335687 1 parent 9549f66
@mmerickel mmerickel authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 pyramid/session.py
View
5 pyramid/session.py
@@ -27,8 +27,9 @@ def manage_accessed(wrapped):
method is called."""
def accessed(session, *arg, **kw):
session.accessed = now = int(time.time())
- if now - session.renewed > session._reissue_time:
- session.changed()
+ if session._reissue_time is not None:
+ if now - session.renewed > session._reissue_time:
+ session.changed()
return wrapped(session, *arg, **kw)
accessed.__doc__ = wrapped.__doc__
return accessed
Please sign in to comment.
Something went wrong with that request. Please try again.