summaryrefslogtreecommitdiffstats
path: root/Lib/ftplib.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-09-27 22:08:12 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-09-27 22:08:12 (GMT)
commitdee0b175f6e745940cb93686ee7e5ed79a741de5 (patch)
treef3eff926188466e219f93cd19287464675c48190 /Lib/ftplib.py
parent003d7463ddb486b1b216dbe36023263dc9492762 (diff)
downloadcpython-dee0b175f6e745940cb93686ee7e5ed79a741de5.zip
cpython-dee0b175f6e745940cb93686ee7e5ed79a741de5.tar.gz
cpython-dee0b175f6e745940cb93686ee7e5ed79a741de5.tar.bz2
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 820c345..807bc38 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)