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
3a53fbbf
Kaydet (Commit)
3a53fbbf
authored
Eyl 27, 2008
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#3911 FTP.makeport was giving bad port numbers
reviewed by Benjamin and Antoine
üst
be17a117
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
ftplib.py
Lib/ftplib.py
+1
-1
test_ftplib.py
Lib/test/test_ftplib.py
+1
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/ftplib.py
Dosyayı görüntüle @
3a53fbbf
...
...
@@ -254,7 +254,7 @@ class FTP:
port number.
'''
hbytes
=
host
.
split
(
'.'
)
pbytes
=
[
repr
(
port
/
256
),
repr
(
port
%
256
)]
pbytes
=
[
repr
(
port
/
/
256
),
repr
(
port
%
256
)]
bytes
=
hbytes
+
pbytes
cmd
=
'PORT '
+
','
.
join
(
bytes
)
return
self
.
voidcmd
(
cmd
)
...
...
Lib/test/test_ftplib.py
Dosyayı görüntüle @
3a53fbbf
...
...
@@ -348,7 +348,7 @@ class TestFTPClass(TestCase):
self
.
client
.
dir
(
lambda
x
:
l
.
append
(
x
))
self
.
assertEqual
(
''
.
join
(
l
),
LIST_DATA
.
replace
(
'
\r\n
'
,
''
))
def
X
test_makeport
(
self
):
def
test_makeport
(
self
):
self
.
client
.
makeport
()
# IPv4 is in use, just make sure send_eprt has not been used
self
.
assertEqual
(
self
.
server
.
handler
.
last_received_cmd
,
'port'
)
...
...
Misc/NEWS
Dosyayı görüntüle @
3a53fbbf
...
...
@@ -22,6 +22,8 @@ Core and Builtins
Library
-------
- Issue #3911: ftplib.FTP.makeport() could give invalid port numbers.
- Issue #3929: When the database cannot be opened, dbm.open() would incorrectly
raise a TypeError: "'tuple' object is not callable" instead of the expected
dbm.error.
...
...
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