Skip to content

Commit bc62943

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5f43b1b commit bc62943

3 files changed

Lines changed: 128 additions & 406 deletions

File tree

debug_auth.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727

2828
# Test manual auth
2929
print("\nTesting manual authentication...")
30-
auth = base64.b64encode(
31-
f"{reddit['client_id']}:{reddit['client_secret']}".encode()
32-
).decode()
30+
auth = base64.b64encode(f"{reddit['client_id']}:{reddit['client_secret']}".encode()).decode()
3331
headers = {
3432
"Authorization": f"Basic {auth}",
3533
"User-Agent": f"ModlogWikiPublisher/1.0 by /u/{reddit['username']}",
@@ -40,9 +38,7 @@
4038
"password": reddit["password"],
4139
}
4240

43-
response = requests.post(
44-
"https://www.reddit.com/api/v1/access_token", headers=headers, data=data
45-
)
41+
response = requests.post("https://www.reddit.com/api/v1/access_token", headers=headers, data=data)
4642

4743
print(f"\nResponse Status: {response.status_code}")
4844
print(f"Response Headers: {dict(response.headers)}")

0 commit comments

Comments
 (0)