Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
09a7df83
Commit
09a7df83
authored
Dec 19, 2010
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#3243 follow-up: remove debugging print and fix docs; data is a bytes object.
parent
7bc0d872
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
Doc/library/http.client.rst
Doc/library/http.client.rst
+1
-1
Doc/library/urllib.request.rst
Doc/library/urllib.request.rst
+1
-1
Lib/urllib/request.py
Lib/urllib/request.py
+0
-1
No files found.
Doc/library/http.client.rst
View file @
09a7df83
...
...
@@ -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()
...
...
Doc/library/urllib.request.rst
View file @
09a7df83
...
...
@@ -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
...
...
Lib/urllib/request.py
View file @
09a7df83
...
...
@@ -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
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment