From 5c7557917b86d3f2a88816fee00d3b84ee65cad6 Mon Sep 17 00:00:00 2001 From: Mieszko Date: Thu, 6 Nov 2014 08:58:24 +0100 Subject: [PATCH] Minor typos fixed --- flask/sessions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flask/sessions.py b/flask/sessions.py index 46f42ba7..7256a261 100644 --- a/flask/sessions.py +++ b/flask/sessions.py @@ -126,7 +126,7 @@ class NullSession(SecureCookieSession): """ def _fail(self, *args, **kwargs): - raise RuntimeError('the session is unavailable because no secret ' + raise RuntimeError('The session is unavailable because no secret ' 'key was set. Set the secret_key on the ' 'application to something unique and secret.') __setitem__ = __delitem__ = clear = pop = popitem = \ @@ -205,7 +205,7 @@ class SessionInterface(object): if app.config['SESSION_COOKIE_DOMAIN'] is not None: return app.config['SESSION_COOKIE_DOMAIN'] if app.config['SERVER_NAME'] is not None: - # chop of the port which is usually not supported by browsers + # chop off the port which is usually not supported by browsers rv = '.' + app.config['SERVER_NAME'].rsplit(':', 1)[0] # Google chrome does not like cookies set to .localhost, so