From 595a17b780373168a32d1bf11826ec305a6b06cf Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Thu, 28 Jan 2016 15:36:18 +0000 Subject: [PATCH] Fix checkstyle --- app/its_dangerous_session.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/its_dangerous_session.py b/app/its_dangerous_session.py index 27b4890a6..25f7aef20 100644 --- a/app/its_dangerous_session.py +++ b/app/its_dangerous_session.py @@ -6,10 +6,10 @@ from itsdangerous import URLSafeTimedSerializer, BadSignature class ItsdangerousSession(CallbackDict, SessionMixin): - def __init__(self, initial=None): def on_update(self): self.modified = True + CallbackDict.__init__(self, initial, on_update) self.modified = False @@ -45,8 +45,8 @@ class ItsdangerousSessionInterface(SessionInterface): response.delete_cookie(app.session_cookie_name, domain=domain) return - session.permanent=True - expires= datetime.utcnow() + timedelta(app.config.get('PERMANENT_SESSION_LIFETIME')) + session.permanent = True + expires = datetime.utcnow() + timedelta(app.config.get('PERMANENT_SESSION_LIFETIME')) val = self.get_serializer(app).dumps(dict(session)) response.set_cookie(app.session_cookie_name, val, expires=expires, httponly=True,