commit | 3a53fbbfcf2785ff5ed738a0e592973a7dae1dfc | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Sep 27 22:04:16 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Sep 27 22:04:16 2008 +0000 |
tree | a0c0f6672fed1c38d187170201e95bceeeeeb04a | |
parent | be17a117211a4e4cc08573852fedebd5a74d0229 [diff] [blame] |
#3911 FTP.makeport was giving bad port numbers reviewed by Benjamin and Antoine
diff --git a/Lib/ftplib.py b/Lib/ftplib.py index c75b317..42f2bff 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py
@@ -254,7 +254,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)