1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-25 12:34:23 +01:00

Merge pull request #126 from cclauss/patch-2

Use ==/!= to compare str, bytes, and int literals
This commit is contained in:
Satwik Kansal 2019-07-06 13:34:28 +05:30 committed by GitHub
commit e6eac17ef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ for handle, issues in contribs.items():
issue_string = ', '.join([issue_format.format(i, i) for i in issues])
resp = requests.get(github_rest_api.format(handle))
name = handle
if resp.status_code is 200:
if resp.status_code == 200:
pprint.pprint(resp.json()['name'])
else:
print(handle, resp.content)