]> granicus.if.org Git - python/commitdiff
backport r66656 so people using -Qnew aren't affected
authorBenjamin Peterson <benjamin@python.org>
Sat, 27 Sep 2008 22:08:12 +0000 (22:08 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 27 Sep 2008 22:08:12 +0000 (22:08 +0000)
Lib/ftplib.py

index 820c345ee778e07d85e894bd3ac5e0eb2a2a2326..807bc383eeb05cbb8b62f4a0ba180b2322a96b56 100644 (file)
@@ -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)