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:
commit
e6eac17ef5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user