backport r66656 so people using -Qnew aren't affected
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 @@
         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)