[Python-checkins] r66657 - python/trunk/Lib/ftplib.py

benjamin.peterson python-checkins at python.org
Sun Sep 28 00:08:12 CEST 2008


Author: benjamin.peterson
Date: Sun Sep 28 00:08:12 2008
New Revision: 66657

Log:
backport r66656 so people using -Qnew aren't affected

Modified:
   python/trunk/Lib/ftplib.py

Modified: python/trunk/Lib/ftplib.py
==============================================================================
--- python/trunk/Lib/ftplib.py	(original)
+++ python/trunk/Lib/ftplib.py	Sun Sep 28 00:08:12 2008
@@ -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)


More information about the Python-checkins mailing list