From 5855f25b87819c07d462000e097c426480211b74 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 27 Sep 2008 22:08:12 +0000 Subject: backport r66656 so people using -Qnew aren't affected --- Lib/ftplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/ftplib.py') 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) -- cgit v1.2.1