Remove backslash line continuations

This commit is contained in:
Danny Hermes
2016-08-10 17:01:11 -07:00
parent 380b3e1c0a
commit a10eb17fba
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')