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 | dee0b175f6e745940cb93686ee7e5ed79a741de5 (patch) | |
tree | f3eff926188466e219f93cd19287464675c48190 /Lib/ftplib.py | |
parent | 003d7463ddb486b1b216dbe36023263dc9492762 (diff) | |
download | cpython-git-dee0b175f6e745940cb93686ee7e5ed79a741de5.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) |