Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
09a7df83
Kaydet (Commit)
09a7df83
authored
Ara 19, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#3243 follow-up: remove debugging print and fix docs; data is a bytes object.
üst
7bc0d872
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
http.client.rst
Doc/library/http.client.rst
+1
-1
urllib.request.rst
Doc/library/urllib.request.rst
+1
-1
request.py
Lib/urllib/request.py
+0
-1
No files found.
Doc/library/http.client.rst
Dosyayı görüntüle @
09a7df83
...
@@ -403,7 +403,7 @@ HTTPConnection Objects
...
@@ -403,7 +403,7 @@ HTTPConnection Objects
headers to send with the request.
headers to send with the request.
.. versionadded:: 3.2
.. versionadded:: 3.2
*body* can
be an iterable
*body* can
now be an iterable.
.. method:: HTTPConnection.getresponse()
.. method:: HTTPConnection.getresponse()
...
...
Doc/library/urllib.request.rst
Dosyayı görüntüle @
09a7df83
...
@@ -20,7 +20,7 @@ The :mod:`urllib.request` module defines the following functions:
...
@@ -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
Open the URL *url*, which can be either a string or a
:class:`Request` object.
: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
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
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
the headers. Currently HTTP requests are the only ones that use *data*; the
...
...
Lib/urllib/request.py
Dosyayı görüntüle @
09a7df83
...
@@ -1057,7 +1057,6 @@ class AbstractHTTPHandler(BaseHandler):
...
@@ -1057,7 +1057,6 @@ class AbstractHTTPHandler(BaseHandler):
try
:
try
:
mv
=
memoryview
(
data
)
mv
=
memoryview
(
data
)
except
TypeError
:
except
TypeError
:
print
(
data
)
if
isinstance
(
data
,
collections
.
Iterable
):
if
isinstance
(
data
,
collections
.
Iterable
):
raise
ValueError
(
"Content-Length should be specified
\
raise
ValueError
(
"Content-Length should be specified
\
for iterable data of type
%
r
%
r"
%
(
type
(
data
),
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