Merge pull request #608 from dhermes/remove-line-continuations

Remove backslash line continuations.
This commit is contained in:
Nathaniel Manista
2016-08-10 17:10:53 -07:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -335,8 +335,8 @@ class OAuth2Settings(object):
self.request_prefix = getattr(settings_instance,
'GOOGLE_OAUTH2_REQUEST_ATTRIBUTE',
GOOGLE_OAUTH2_REQUEST_ATTRIBUTE)
self.client_id, self.client_secret = \
_get_oauth2_client_id_and_secret(settings_instance)
info = _get_oauth2_client_id_and_secret(settings_instance)
self.client_id, self.client_secret = info
if ('django.contrib.sessions.middleware.SessionMiddleware'
not in settings_instance.MIDDLEWARE_CLASSES):

View File

@@ -197,8 +197,8 @@ class Oauth2CallbackTest(TestWithDjangoEnvironment):
state=json.dumps(self.fake_state),
redirect_uri=request.build_absolute_uri('oauth2/oauth2callback'))
self.session['google_oauth2_flow_{0}'.format(self.CSRF_TOKEN)] \
= pickle.dumps(flow)
session_key = 'google_oauth2_flow_{0}'.format(self.CSRF_TOKEN)
self.session[session_key] = pickle.dumps(flow)
def local_throws(code):
raise FlowExchangeError('test')