Skip to content

Commit 5d08ba4

Browse files
Merge pull request googleapis#608 from dhermes/remove-line-continuations
Remove backslash line continuations.
2 parents 380b3e1 + a10eb17 commit 5d08ba4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

oauth2client/contrib/django_util/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ def __init__(self, settings_instance):
335335
self.request_prefix = getattr(settings_instance,
336336
'GOOGLE_OAUTH2_REQUEST_ATTRIBUTE',
337337
GOOGLE_OAUTH2_REQUEST_ATTRIBUTE)
338-
self.client_id, self.client_secret = \
339-
_get_oauth2_client_id_and_secret(settings_instance)
338+
info = _get_oauth2_client_id_and_secret(settings_instance)
339+
self.client_id, self.client_secret = info
340340

341341
if ('django.contrib.sessions.middleware.SessionMiddleware'
342342
not in settings_instance.MIDDLEWARE_CLASSES):

tests/contrib/django_util/test_views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ def test_callback_handles_bad_flow_exchange(self, pickle):
197197
state=json.dumps(self.fake_state),
198198
redirect_uri=request.build_absolute_uri('oauth2/oauth2callback'))
199199

200-
self.session['google_oauth2_flow_{0}'.format(self.CSRF_TOKEN)] \
201-
= pickle.dumps(flow)
200+
session_key = 'google_oauth2_flow_{0}'.format(self.CSRF_TOKEN)
201+
self.session[session_key] = pickle.dumps(flow)
202202

203203
def local_throws(code):
204204
raise FlowExchangeError('test')

0 commit comments

Comments
 (0)