mirror of
https://github.com/satwikkansal/wtfpython.git
synced 2025-07-25 07:21:44 +02:00
Merge pull request #126 from cclauss/patch-2
Use ==/!= to compare str, bytes, and int literals
This commit is contained in:
@@ -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)
|
||||
@@ -48,4 +48,4 @@ for handle, issues in contribs.items():
|
||||
handle,
|
||||
issue_string))
|
||||
|
||||
print(table_header + "\n".join(rows_so_far))
|
||||
print(table_header + "\n".join(rows_so_far))
|
||||
|
Reference in New Issue
Block a user