Commit dee0b175 authored by Benjamin Peterson's avatar Benjamin Peterson

backport r66656 so people using -Qnew aren't affected

parent 003d7463
...@@ -252,7 +252,7 @@ class FTP: ...@@ -252,7 +252,7 @@ class FTP:
port number. port number.
''' '''
hbytes = host.split('.') hbytes = host.split('.')
pbytes = [repr(port/256), repr(port%256)] pbytes = [repr(port//256), repr(port%256)]
bytes = hbytes + pbytes bytes = hbytes + pbytes
cmd = 'PORT ' + ','.join(bytes) cmd = 'PORT ' + ','.join(bytes)
return self.voidcmd(cmd) return self.voidcmd(cmd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment