Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 10, 2024
1 parent cb7bed5 commit 0dac011
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions social_cherrypy/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ def build_absolute_uri(self, path=None):
return cherrypy.url(path or "")

def is_response(self, value):
return (isinstance(value, str) or # fmt: skip
isinstance(value, cherrypy.CherryPyException))
return isinstance(value, str) or isinstance( # fmt: skip
value, cherrypy.CherryPyException
)
6 changes: 4 additions & 2 deletions social_cherrypy/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ def complete(self, backend, *args, **kwargs):

@cherrypy.expose
@psa()
def disconnect(self, backend, association_id=None, # fmt: skip
csrfmiddlewaretoken=None):
def disconnect(
self, backend, association_id=None, # fmt: skip
csrfmiddlewaretoken=None,
):
user = getattr(cherrypy.request, "user", None)
return do_disconnect(self.backend, user, association_id)

Expand Down

0 comments on commit 0dac011

Please sign in to comment.