commit | 2a9b9cbea08c7c22a328926b0e0719fb197743a0 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Sat Sep 13 01:43:28 2008 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Sat Sep 13 01:43:28 2008 +0000 |
tree | 51c8930c097a35c97db9cdae6f5af889424cf9bd | |
parent | e91fcbdf691c687d1195fad342564e0b3442f444 [diff] [blame] |
#687648 from Robert Schuppenies: use classic division.
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 @@ 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')