mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
backport r66656 so people using -Qnew aren't affected
This commit is contained in:
parent
003d7463dd
commit
dee0b175f6
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ class FTP:
|
|||
port number.
|
||||
'''
|
||||
hbytes = host.split('.')
|
||||
pbytes = [repr(port/256), repr(port%256)]
|
||||
pbytes = [repr(port//256), repr(port%256)]
|
||||
bytes = hbytes + pbytes
|
||||
cmd = 'PORT ' + ','.join(bytes)
|
||||
return self.voidcmd(cmd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue