From 6a8a6343fe46d0d310566ce536e5710b0842a065 Mon Sep 17 00:00:00 2001 From: Stephen Wolff Date: Tue, 2 Jul 2019 10:54:38 +0200 Subject: [PATCH] Pep line length to make github happy --- flask_jwt_extended/view_decorators.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flask_jwt_extended/view_decorators.py b/flask_jwt_extended/view_decorators.py index f4ed0693..442ccd5f 100644 --- a/flask_jwt_extended/view_decorators.py +++ b/flask_jwt_extended/view_decorators.py @@ -253,13 +253,15 @@ def _decode_jwt_from_request(request_type): # add the functions in the order specified in JWT_TOKEN_LOCATION for location in locations: if location == 'cookies' and config.jwt_in_cookies: - get_encoded_token_functions.append(lambda: _decode_jwt_from_cookies(request_type)) + get_encoded_token_functions.append( + lambda: _decode_jwt_from_cookies(request_type)) if location == 'query_string' and config.jwt_in_query_string: get_encoded_token_functions.append(_decode_jwt_from_query_string) if location == 'headers' and config.jwt_in_headers: get_encoded_token_functions.append(_decode_jwt_from_headers) if location == 'json' and config.jwt_in_json: - get_encoded_token_functions.append(lambda: _decode_jwt_from_json(request_type)) + get_encoded_token_functions.append( + lambda: _decode_jwt_from_json(request_type)) # Try to find the token from one of these locations. It only needs to exist # in one place to be valid (not every location).