backport r66656 so people using -Qnew aren't affected

This commit is contained in:
Benjamin Peterson 2008-09-27 22:08:12 +00:00
parent 003d7463dd
commit dee0b175f6
1 changed files with 1 additions and 1 deletions

View File

@ -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)