From 565cc3c27b605203dfdbbf3560e8d248a8db2efc Mon Sep 17 00:00:00 2001 From: shashi278 Date: Thu, 6 Aug 2020 20:20:39 +0530 Subject: [PATCH] fixed for pycodestyle --- kivyauth/firebase_auth.py | 16 ++++++++++++---- kivyauth/google_auth.py | 4 +++- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/kivyauth/firebase_auth.py b/kivyauth/firebase_auth.py index 4245a2b..a6db1f6 100644 --- a/kivyauth/firebase_auth.py +++ b/kivyauth/firebase_auth.py @@ -27,7 +27,9 @@ def onSuccess(self, result): user = FirebaseAuth.getInstance().getCurrentUser() self.success_listener( - user.getDisplayName(), user.getEmail(), user.getPhotoUrl().toString() + user.getDisplayName(), + user.getEmail(), + user.getPhotoUrl().toString() ) @@ -62,15 +64,21 @@ def firebase_login(provider): task = pendingResultTask.addOnSuccessListener( OnSuccessListener(event_success_listener) ) - task = task.addOnFailureListener(OnFailureListener(event_error_listener)) + task = task.addOnFailureListener( + OnFailureListener(event_error_listener) + ) else: # There's no pending result so you need to start the sign-in flow. task = FirebaseAuth.startActivityForSignInWithProvider( context, provider.build() ) - task = task.addOnSuccessListener(OnSuccessListener(event_success_listener)) - task = task.addOnFailureListener(OnFailureListener(event_error_listener)) + task = task.addOnSuccessListener( + OnSuccessListener(event_success_listener) + ) + task = task.addOnFailureListener( + OnFailureListener(event_error_listener) + ) def firebase_logout(after_logout): diff --git a/kivyauth/google_auth.py b/kivyauth/google_auth.py index 08929ee..0f27592 100644 --- a/kivyauth/google_auth.py +++ b/kivyauth/google_auth.py @@ -39,7 +39,9 @@ def google_activity_listener(self, request_code, result_code, data): ) except Exception as e: - Logger.info("KivyAuth: Error signing in using Google. {}".format(e)) + Logger.info( + "KivyAuth: Error signing in using Google. {}".format(e) + ) self.error_listener()