]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#3243 follow-up: remove debugging print and fix docs; data is a bytes object. v3.2b2
authorGeorg Brandl <georg@python.org>
Sun, 19 Dec 2010 12:33:52 +0000 (12:33 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 19 Dec 2010 12:33:52 +0000 (12:33 +0000)
Doc/library/http.client.rst
Doc/library/urllib.request.rst
Lib/urllib/request.py

index cba59077d670550968bc02acce218d3027d865d7..d6ff2c775b47689361f2a6940b6e172d8d1e1c6f 100644 (file)
@@ -403,7 +403,7 @@ HTTPConnection Objects
    headers to send with the request.
 
    .. versionadded:: 3.2
-      *body* can be an iterable
+      *body* can now be an iterable.
 
 .. method:: HTTPConnection.getresponse()
 
index 6aa9e1565851aec4f4d9df2ae469aebc0ff3659a..724310be0d20655453522a0a11e78aa41e48b6e9 100644 (file)
@@ -20,7 +20,7 @@ The :mod:`urllib.request` module defines the following functions:
    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
index 732c112a0abe1977b845c9c7cd2f7d43eede2048..17936ee94848d20b42c5257b373a67445624380f 100644 (file)
@@ -1057,7 +1057,6 @@ class AbstractHTTPHandler(BaseHandler):
                 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),