From be3238f85bd9031fd894b6cb747b0c125084e753 Mon Sep 17 00:00:00 2001 From: 0x3d Date: Wed, 7 Feb 2024 00:38:16 +0100 Subject: [PATCH] Happy linter --- psa_car_controller/psa/oauth.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/psa_car_controller/psa/oauth.py b/psa_car_controller/psa/oauth.py index 4ad5098..ae56125 100644 --- a/psa_car_controller/psa/oauth.py +++ b/psa_car_controller/psa/oauth.py @@ -44,10 +44,11 @@ class OpenIdCredentialManager(CredentialManager): ret = "" while len(ret) != 36: logger.info("Now login to this URL in a browser: " + url) - ret = input("\nCopy+paste the resulting mymop-code (in F12 > Network when you hit the final OK button, 36 chars, UUID format): ") + ret = input("\nCopy+paste the resulting mymop-code (in F12 > Network" \ + "when you hit the final OK button, 36 chars, UUID format): ") self._token_request({ "grant_type": 'authorization_code', "code": ret, - "redirect_uri": redir_uri, "code_verifier": code_verifier), False) + "redirect_uri": redir_uri, "code_verifier": code_verifier}, False) @staticmethod def _is_token_expired(response: Response) -> bool: