[New-bugs-announce] [issue3911] ftplib.FTP.makeport() bug
Giampaolo Rodola'
report at bugs.python.org
Fri Sep 19 20:08:02 CEST 2008
New submission from Giampaolo Rodola' <billiejoex at users.sourceforge.net>:
Python 3.0rc1 (r30rc1:66507, Sep 18 2008, 14:47:08) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ftplib
>>> f = ftplib.FTP()
>>> f.connect('mirrors.kernel.org')
'220 Welcome to mirrors.kernel.org.'
>>> f.login()
'230 Login successful.'
>>> f.debugging = 1
>>> f.makeport()
*cmd* 'PORT 10,0,0,1,18.21875,56'
*resp* '500 Illegal PORT command.'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\python30\lib\ftplib.py", line 300, in makeport
resp = self.sendport(host, port)
File "C:\python30\lib\ftplib.py", line 260, in sendport
return self.voidcmd(cmd)
File "C:\python30\lib\ftplib.py", line 249, in voidcmd
return self.voidresp()
File "C:\python30\lib\ftplib.py", line 224, in voidresp
resp = self.getresp()
File "C:\python30\lib\ftplib.py", line 219, in getresp
raise error_perm(resp)
ftplib.error_perm: 500 Illegal PORT command.
>>>
Path in attachment.
----------
components: Library (Lib)
files: ftplib.patch
keywords: patch
messages: 73435
nosy: giampaolo.rodola
severity: normal
status: open
title: ftplib.FTP.makeport() bug
versions: Python 3.0
Added file: http://bugs.python.org/file11527/ftplib.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3911>
_______________________________________
More information about the New-bugs-announce
mailing list