-
-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade syntax with pyupgrade --py38-plus
- Loading branch information
Showing
8 changed files
with
15 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
import logging | ||
|
||
from oauthlib.common import extract_params | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
import requests | ||
import requests_oauthlib | ||
import oauthlib | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ def test_add_token(self): | |
token = "Bearer " + self.token["access_token"] | ||
|
||
def verifier(r, **kwargs): | ||
auth_header = r.headers.get(str("Authorization"), None) | ||
auth_header = r.headers.get("Authorization", None) | ||
self.assertEqual(auth_header, token) | ||
resp = mock.MagicMock() | ||
resp.cookes = [] | ||
|
@@ -544,10 +544,10 @@ def setUp(self): | |
with open(netrc_loc, "w") as f: | ||
f.write("machine i.b\n" " password abc123\n" " login [email protected]\n") | ||
|
||
super(OAuth2SessionNetrcTest, self).setUp() | ||
super().setUp() | ||
|
||
def tearDown(self): | ||
super(OAuth2SessionNetrcTest, self).tearDown() | ||
super().tearDown() | ||
|
||
if self.prehome is not None: | ||
os.environ["HOME"] = self.prehome | ||
|