From dee0b175f6e745940cb93686ee7e5ed79a741de5 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 27 Sep 2008 22:08:12 +0000 Subject: [PATCH] backport r66656 so people using -Qnew aren't affected --- Lib/ftplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 820c345ee77..807bc383eeb 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)