removed unneeded parentheses from if clause
authorUdi Oron <udioron@gmail.com>
Tue, 15 Jul 2014 16:56:47 +0000 (19:56 +0300)
committerUdi Oron <udioron@gmail.com>
Tue, 15 Jul 2014 16:56:47 +0000 (19:56 +0300)
docs/user/advanced.rst

index 6a3906355f61d38eeb2ccd62a8f83fa340b4b5dc..6343e48fada15f5e724ab767462839389b401218 100644 (file)
@@ -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