mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #2134 from nonZero/patch-1
removed unneeded parentheses from if clause
This commit is contained in:
@@ -423,7 +423,7 @@ like so::
|
||||
We should confirm that GitHub responded correctly. If it has, we want to work
|
||||
out what type of content it is. Do this like so::
|
||||
|
||||
>>> if (r.status_code == requests.codes.ok):
|
||||
>>> if r.status_code == requests.codes.ok:
|
||||
... print r.headers['content-type']
|
||||
...
|
||||
application/json; charset=utf-8
|
||||
|
||||
Reference in New Issue
Block a user