From: Benjamin Peterson Date: Sat, 27 Sep 2008 22:08:12 +0000 (+0000) Subject: backport r66656 so people using -Qnew aren't affected X-Git-Tag: v2.6~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dee0b175f6e745940cb93686ee7e5ed79a741de5;p=python backport r66656 so people using -Qnew aren't affected --- 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)