summaryrefslogtreecommitdiff
path: root/Lib/ftplib.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-09-27 22:08:12 +0000
committerBenjamin Peterson <benjamin@python.org>2008-09-27 22:08:12 +0000
commit5855f25b87819c07d462000e097c426480211b74 (patch)
tree7af9793de227f0414db01378a06e09cd98008849 /Lib/ftplib.py
parent65b03cb5ffe9c9484734c33b04c7d6490c17c91f (diff)
downloadcpython-5855f25b87819c07d462000e097c426480211b74.tar.gz
backport r66656 so people using -Qnew aren't affected
Diffstat (limited to 'Lib/ftplib.py')
-rw-r--r--Lib/ftplib.py2
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)