diff options
author | Collin Winter <collinw@gmail.com> | 2007-09-10 00:49:57 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-09-10 00:49:57 (GMT) |
commit | 463344813fa580118eb4fd9dc4cfe26f0a0f17ef (patch) | |
tree | 7af9fd3622e4ac8a81cdd0faa0b79d84a881cc04 /Doc/library/socket.rst | |
parent | 4c6a140b7f6478d92e14d84c6ca89edef120658e (diff) | |
download | cpython-463344813fa580118eb4fd9dc4cfe26f0a0f17ef.zip cpython-463344813fa580118eb4fd9dc4cfe26f0a0f17ef.tar.gz cpython-463344813fa580118eb4fd9dc4cfe26f0a0f17ef.tar.bz2 |
Change instances of 'while 1:' in the docs into 'while True:'.
Diffstat (limited to 'Doc/library/socket.rst')
-rw-r--r-- | Doc/library/socket.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 7512e56..19970ad 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -734,7 +734,7 @@ The first two examples support IPv4 only. :: s.listen(1) conn, addr = s.accept() print('Connected by', addr) - while 1: + while True: data = conn.recv(1024) if not data: break conn.send(data) @@ -788,7 +788,7 @@ sends traffic to the first one connected successfully. :: sys.exit(1) conn, addr = s.accept() print('Connected by', addr) - while 1: + while True: data = conn.recv(1024) if not data: break conn.send(data) |