diff options
| author | Collin Winter <collinw@gmail.com> | 2007-07-17 20:59:35 +0000 |
|---|---|---|
| committer | Collin Winter <collinw@gmail.com> | 2007-07-17 20:59:35 +0000 |
| commit | 6f2df4d5e193d54244b0c2de91ef0ab1604b9243 (patch) | |
| tree | 5e172400da7561eb4bb8fafc62c8cab511d74dad /Demo/sockets/mcast.py | |
| parent | a8c360ee76fb76902a2e2140fbb38d4b06b2d9fb (diff) | |
| download | cpython-git-6f2df4d5e193d54244b0c2de91ef0ab1604b9243.tar.gz | |
Run 2to3 over the Demo/ directory to shut up parse errors from 2to3 about lingering print statements.
Diffstat (limited to 'Demo/sockets/mcast.py')
| -rwxr-xr-x | Demo/sockets/mcast.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/sockets/mcast.py b/Demo/sockets/mcast.py index 1abd305632..c1902d602b 100755 --- a/Demo/sockets/mcast.py +++ b/Demo/sockets/mcast.py @@ -52,7 +52,7 @@ def receiver(): while 1: data, sender = s.recvfrom(1500) while data[-1:] == '\0': data = data[:-1] # Strip trailing \0's - print sender, ':', repr(data) + print(sender, ':', repr(data)) # Open a UDP socket, bind it to a port and select a multicast group @@ -76,7 +76,7 @@ def openmcastsock(group, port): group = gethostbyname(group) # # Construct binary group address - bytes = map(int, string.split(group, ".")) + bytes = list(map(int, string.split(group, "."))) grpaddr = 0 for byte in bytes: grpaddr = (grpaddr << 8) | byte # |
