New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ftplib.FTP.makeport() bug #48161
Comments
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. |
Why not just use floor divide (//)? |
At your discretion. I was thinking that it's not encouraging that such A dummy FTP server returning fixed response codes could be arranged and |
On Fri, Sep 19, 2008 at 6:23 PM, Giampaolo Rodola'
Yes, testing of some of these modules is quite sad.
Would you like to contribute a patch?
|
Ok. |
Done in issue bpo-3939. |
Fixed in r66656. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: