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
0af33885
Kaydet (Commit)
0af33885
authored
Mar 23, 2007
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #978833: Revert r50844, as it broke _socketobject.dup.
Will backport.
üst
2f401d71
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
httplib.py
Lib/httplib.py
+2
-2
socket.py
Lib/socket.py
+0
-3
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/httplib.py
Dosyayı görüntüle @
0af33885
...
...
@@ -948,8 +948,8 @@ class HTTPConnection:
self
.
__state
=
_CS_IDLE
if
response
.
will_close
:
#
Pass the socket
to the response
self
.
sock
=
None
#
this effectively passes the connection
to the response
self
.
close
()
else
:
# remember this, so we can tell when it is complete
self
.
__response
=
response
...
...
Lib/socket.py
Dosyayı görüntüle @
0af33885
...
...
@@ -139,8 +139,6 @@ class _closedsocket(object):
__slots__
=
[]
def
_dummy
(
*
args
):
raise
error
(
EBADF
,
'Bad file descriptor'
)
def
close
(
self
):
pass
# All _delegate_methods must also be initialized here.
send
=
recv
=
recv_into
=
sendto
=
recvfrom
=
recvfrom_into
=
_dummy
__getattr__
=
_dummy
...
...
@@ -159,7 +157,6 @@ class _socketobject(object):
setattr
(
self
,
method
,
getattr
(
_sock
,
method
))
def
close
(
self
):
self
.
_sock
.
close
()
self
.
_sock
=
_closedsocket
()
dummy
=
self
.
_sock
.
_dummy
for
method
in
_delegate_methods
:
...
...
Misc/NEWS
Dosyayı görüntüle @
0af33885
...
...
@@ -199,6 +199,8 @@ Core and builtins
Library
-------
-
Bug
#
978833
:
Revert
r50844
,
as
it
broke
_socketobject
.
dup
.
-
Bug
#
1675967
:
re
patterns
pickled
with
Python
2.4
and
earlier
can
now
be
unpickled
with
Python
2.5
and
newer
.
...
...
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