diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2008-09-13 01:43:28 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2008-09-13 01:43:28 (GMT) |
commit | 2a9b9cbea08c7c22a328926b0e0719fb197743a0 (patch) | |
tree | 51c8930c097a35c97db9cdae6f5af889424cf9bd /Demo/sockets | |
parent | e91fcbdf691c687d1195fad342564e0b3442f444 (diff) | |
download | cpython-2a9b9cbea08c7c22a328926b0e0719fb197743a0.zip cpython-2a9b9cbea08c7c22a328926b0e0719fb197743a0.tar.gz cpython-2a9b9cbea08c7c22a328926b0e0719fb197743a0.tar.bz2 |
#687648 from Robert Schuppenies: use classic division.
Diffstat (limited to 'Demo/sockets')
-rwxr-xr-x | Demo/sockets/ftp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sockets/ftp.py b/Demo/sockets/ftp.py index 6e9282a..8be0812 100755 --- a/Demo/sockets/ftp.py +++ b/Demo/sockets/ftp.py @@ -91,7 +91,7 @@ def sendportcmd(s, f, port): hostname = gethostname() hostaddr = gethostbyname(hostname) hbytes = string.splitfields(hostaddr, '.') - pbytes = [repr(port/256), repr(port%256)] + pbytes = [repr(port//256), repr(port%256)] bytes = hbytes + pbytes cmd = 'PORT ' + string.joinfields(bytes, ',') s.send(cmd + '\r\n') |