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
50ba6e1b
Kaydet (Commit)
50ba6e1b
authored
Nis 05, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#1726172: dont raise an unexpected IndexError if a voidresp() call has an empty response.
üst
5d19610f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ftplib.py
Lib/ftplib.py
+1
-3
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/ftplib.py
Dosyayı görüntüle @
50ba6e1b
...
...
@@ -221,7 +221,7 @@ class FTP:
def
voidresp
(
self
):
"""Expect a response beginning with '2'."""
resp
=
self
.
getresp
()
if
resp
[
0
]
!=
'2'
:
if
resp
[
:
1
]
!=
'2'
:
raise
error_reply
,
resp
return
resp
...
...
@@ -520,8 +520,6 @@ class FTP:
resp
=
self
.
sendcmd
(
'DELE '
+
filename
)
if
resp
[:
3
]
in
(
'250'
,
'200'
):
return
resp
elif
resp
[:
1
]
==
'5'
:
raise
error_perm
,
resp
else
:
raise
error_reply
,
resp
...
...
Misc/NEWS
Dosyayı görüntüle @
50ba6e1b
...
...
@@ -210,6 +210,8 @@ Core and Builtins
Library
-------
- Issue 1726172: fix IndexError in the case of and empty response in ftplib.
- Issue 2625: added missing iteritems() call to the for loop in
mailbox.MH.get_message().
...
...
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