From 09a7df8301bef5a5ac957371ae9e19c68acdca0a Mon Sep 17 00:00:00 2001
From: Georg Brandl <georg@python.org>
Date: Sun, 19 Dec 2010 12:33:52 +0000
Subject: #3243 follow-up: remove debugging print and fix docs; data is a bytes
 object.

---
 Doc/library/http.client.rst    | 2 +-
 Doc/library/urllib.request.rst | 2 +-
 Lib/urllib/request.py          | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst
index cba5907..d6ff2c7 100644
--- a/Doc/library/http.client.rst
+++ b/Doc/library/http.client.rst
@@ -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()
 
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 6aa9e15..724310b 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -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
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index 732c112..17936ee 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -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),
-- 
cgit v0.12

