From a54bc1ccac17625991e26eb5d4577f893803c683 Mon Sep 17 00:00:00 2001 From: Michael Merickel <michael@merickel.org> Date: Mon, 15 Oct 2018 16:24:08 +0200 Subject: [PATCH] fix lint on src --- src/pyramid/authentication.py | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/pyramid/authentication.py b/src/pyramid/authentication.py index f4c2b51..7cb6b68 100644 --- a/src/pyramid/authentication.py +++ b/src/pyramid/authentication.py @@ -143,8 +143,8 @@ if self._clean_principal(userid) is None: debug and self._log( ( - 'unauthenticated_userid returned disallowed %r; returning %r ' - 'as if it was None' % (userid, effective_principals) + 'unauthenticated_userid returned disallowed %r; returning ' + '%r as if it was None' % (userid, effective_principals) ), 'effective_principals', request, @@ -315,8 +315,8 @@ if groups is None: # is None! self.debug and self._log( ( - 'security policy groups callback returned None; returning %r' - % effective_principals + 'security policy groups callback returned None; returning ' + '%r' % effective_principals ), 'effective_principals', request, @@ -339,8 +339,8 @@ if self._clean_principal(userid) is None: self.debug and self._log( ( - 'unauthenticated_userid returned disallowed %r; returning %r ' - 'as if it was None' % (userid, effective_principals) + 'unauthenticated_userid returned disallowed %r; returning ' + '%r as if it was None' % (userid, effective_principals) ), 'effective_principals', request, @@ -596,7 +596,7 @@ .. versionchanged:: 1.10 Added the ``samesite`` option and made the default ``'Lax'``. - + Objects of this class implement the interface described by :class:`pyramid.interfaces.IAuthenticationPolicy`. @@ -1044,8 +1044,8 @@ "userid is of type {}, and is not supported by the " "AuthTktAuthenticationPolicy. Explicitly converting to string " "and storing as base64. Subsequent requests will receive a " - "string as the userid, it will not be decoded back to the type " - "provided.".format(type(userid)), + "string as the userid, it will not be decoded back to the " + "type provided.".format(type(userid)), RuntimeWarning, ) encoding, encoder = self.userid_type_encoders.get(text_type) @@ -1154,8 +1154,8 @@ ``realm`` - Default: ``"Realm"``. The Basic Auth Realm string. Usually displayed to - the user by the browser in the login dialog. + Default: ``"Realm"``. The Basic Auth Realm string. Usually displayed + to the user by the browser in the login dialog. ``debug`` -- Gitblit v1.9.3