Mercurial > cpython-lru_cache-weakref
changeset 67047:e3af5f3a7904 v3.2b2
#3243 follow-up: remove debugging print and fix docs; data is a bytes object.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sun, 19 Dec 2010 12:33:52 +0000 |
| parents | 6f56b247a7cd |
| children | 9b26248830f6 |
| files | Doc/library/http.client.rst Doc/library/urllib.request.rst Lib/urllib/request.py |
| diffstat | 3 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Doc/library/http.client.rst Sun Dec 19 10:49:52 2010 +0000 +++ b/Doc/library/http.client.rst Sun Dec 19 12:33:52 2010 +0000 @@ -403,7 +403,7 @@ headers to send with the request. .. versionadded:: 3.2 - *body* can be an iterable + *body* can now be an iterable. .. method:: HTTPConnection.getresponse()
--- a/Doc/library/urllib.request.rst Sun Dec 19 10:49:52 2010 +0000 +++ b/Doc/library/urllib.request.rst Sun Dec 19 12:33:52 2010 +0000 @@ -20,7 +20,7 @@ Open the URL *url*, which can be either a string or a :class:`Request` object. - *data* may be a string specifying additional data to send to the + *data* may be a bytes object specifying additional data to send to the server, or ``None`` if no such data is needed. *data* may also be an iterable object and in that case Content-Length value must be specified in the headers. Currently HTTP requests are the only ones that use *data*; the
--- a/Lib/urllib/request.py Sun Dec 19 10:49:52 2010 +0000 +++ b/Lib/urllib/request.py Sun Dec 19 12:33:52 2010 +0000 @@ -1057,7 +1057,6 @@ try: mv = memoryview(data) except TypeError: - print(data) if isinstance(data, collections.Iterable): raise ValueError("Content-Length should be specified \ for iterable data of type %r %r" % (type(data),
