mirror of https://github.com/python/cpython
backport r66656 so people using -Qnew aren't affected
This commit is contained in:
parent
003d7463dd
commit
dee0b175f6
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue