Skip to content

Commit

Permalink
fixed for pycodestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
shashi278 committed Aug 6, 2020
1 parent 42499e6 commit 565cc3c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
16 changes: 12 additions & 4 deletions kivyauth/firebase_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)


Expand Down Expand Up @@ -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):
Expand Down
4 changes: 3 additions & 1 deletion kivyauth/google_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit 565cc3c

Please sign in to comment.