Skip to content

Commit

Permalink
chore: build string directly instead of intermediate bits tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jan 6, 2025
1 parent 54102e9 commit 3d95a29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions social_core/backends/pocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ def auth_url(self):
}
token = self.get_json(self.REQUEST_TOKEN_URL, data=data)["code"]
self.strategy.session_set("pocket_request_token", token)
bits = (self.AUTHORIZATION_URL, token, self.redirect_uri)
return "{}?request_token={}&redirect_uri={}".format(*bits)
return f"{self.AUTHORIZATION_URL}?request_token={token}&redirect_uri={self.redirect_uri}"

@handle_http_errors
def auth_complete(self, *args, **kwargs):
Expand Down

0 comments on commit 3d95a29

Please sign in to comment.