mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-22 11:04:25 +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)
|
||||||
@ -48,4 +48,4 @@ for handle, issues in contribs.items():
|
|||||||
handle,
|
handle,
|
||||||
issue_string))
|
issue_string))
|
||||||
|
|
||||||
print(table_header + "\n".join(rows_so_far))
|
print(table_header + "\n".join(rows_so_far))
|
||||||
|
Loading…
Reference in New Issue
Block a user