mirror of
https://github.com/satwikkansal/wtfpython
synced 2025-02-16 23:53:42 +01:00
Merge pull request #126 from cclauss/patch-2
Use ==/!= to compare str, bytes, and int literals
This commit is contained in:
commit
e6eac17ef5
@ -39,7 +39,7 @@ for handle, issues in contribs.items():
|
|||||||
issue_string = ', '.join([issue_format.format(i, i) for i in issues])
|
issue_string = ', '.join([issue_format.format(i, i) for i in issues])
|
||||||
resp = requests.get(github_rest_api.format(handle))
|
resp = requests.get(github_rest_api.format(handle))
|
||||||
name = handle
|
name = handle
|
||||||
if resp.status_code is 200:
|
if resp.status_code == 200:
|
||||||
pprint.pprint(resp.json()['name'])
|
pprint.pprint(resp.json()['name'])
|
||||||
else:
|
else:
|
||||||
print(handle, resp.content)
|
print(handle, resp.content)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user