Merge pull request #1654 from riyadparvez/deprecation-removal

Deprecation removal and other idiomatic updates
This commit is contained in:
Cory Benfield
2013-10-05 10:02:46 -07:00
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ Let's persist some cookies across requests::
s.get('http://httpbin.org/cookies/set/sessioncookie/123456789')
r = s.get("http://httpbin.org/cookies")
print r.text
print(r.text)
# '{"cookies": {"sessioncookie": "123456789"}}'
+1 -1
View File
@@ -68,7 +68,7 @@ following code::
You can see that the URL has been correctly encoded by printing the URL::
>>> print r.url
>>> print(r.url)
http://httpbin.org/get?key2=value2&key1=value1
Note that any dictionary key whose value is ``None`` will not be added to the
+1 -1
View File
@@ -23,7 +23,7 @@ usage:
>>> payload = dict(key1='value1', key2='value2')
>>> r = requests.post("http://httpbin.org/post", data=payload)
>>> print r.text
>>> print(r.text)
{
...
"form": {
+1 -1
View File
@@ -575,7 +575,7 @@ class Response(object):
raise ChunkedEncodingError(e)
except AttributeError:
# Standard file-like object.
while 1:
while True:
chunk = self.raw.read(chunk_size)
if not chunk:
break