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
1bd93a75
Kaydet (Commit)
1bd93a75
authored
Eki 31, 2010
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix ftplib resource warnings
üst
d5df36d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
ftplib.py
Lib/ftplib.py
+1
-0
test_ftplib.py
Lib/test/test_ftplib.py
+2
-0
No files found.
Lib/ftplib.py
Dosyayı görüntüle @
1bd93a75
...
@@ -361,6 +361,7 @@ class FTP:
...
@@ -361,6 +361,7 @@ class FTP:
conn
,
sockaddr
=
sock
.
accept
()
conn
,
sockaddr
=
sock
.
accept
()
if
self
.
timeout
is
not
_GLOBAL_DEFAULT_TIMEOUT
:
if
self
.
timeout
is
not
_GLOBAL_DEFAULT_TIMEOUT
:
conn
.
settimeout
(
self
.
timeout
)
conn
.
settimeout
(
self
.
timeout
)
sock
.
close
()
if
resp
[:
3
]
==
'150'
:
if
resp
[:
3
]
==
'150'
:
# this is conditional in case we received a 125
# this is conditional in case we received a 125
size
=
parse150
(
resp
)
size
=
parse150
(
resp
)
...
...
Lib/test/test_ftplib.py
Dosyayı görüntüle @
1bd93a75
...
@@ -355,6 +355,8 @@ if ssl is not None:
...
@@ -355,6 +355,8 @@ if ssl is not None:
if
(
isinstance
(
self
.
socket
,
ssl
.
SSLSocket
)
and
if
(
isinstance
(
self
.
socket
,
ssl
.
SSLSocket
)
and
self
.
socket
.
_sslobj
is
not
None
):
self
.
socket
.
_sslobj
is
not
None
):
self
.
_do_ssl_shutdown
()
self
.
_do_ssl_shutdown
()
else
:
super
(
SSLConnection
,
self
)
.
close
()
class
DummyTLS_DTPHandler
(
SSLConnection
,
DummyDTPHandler
):
class
DummyTLS_DTPHandler
(
SSLConnection
,
DummyDTPHandler
):
...
...
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