![](https://secure.gravatar.com/avatar/8ac615df352a970211b0e3d94a307c6d.jpg?s=120&d=mm&r=g)
27 Sep
2008
27 Sep
'08
10:08 p.m.
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)