diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-09-27 22:08:12 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-09-27 22:08:12 +0000 |
commit | 5855f25b87819c07d462000e097c426480211b74 (patch) | |
tree | 7af9793de227f0414db01378a06e09cd98008849 /Lib/ftplib.py | |
parent | 65b03cb5ffe9c9484734c33b04c7d6490c17c91f (diff) | |
download | cpython-5855f25b87819c07d462000e097c426480211b74.tar.gz |
backport r66656 so people using -Qnew aren't affected
Diffstat (limited to 'Lib/ftplib.py')
-rw-r--r-- | Lib/ftplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 820c345ee7..807bc383ee 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -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) |