Commits

Benjamin Peterson  committed 0699a71

backport r66656 so people using -Qnew aren't affected

  • Participants
  • Parent commits 8a1dbe5
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/ftplib.py

         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)