[Python-checkins] cpython: Refer to the return value on nameindex and friends as a string, not a byte
gregory.p.smith
python-checkins at python.org
Mon May 23 07:17:10 CEST 2011
http://hg.python.org/cpython/rev/a715cf07a690
changeset: 70288:a715cf07a690
user: Gregory P. Smith <greg at krypto.org>
date: Sun May 22 22:16:57 2011 -0700
summary:
Refer to the return value on nameindex and friends as a string, not a byte
string. The code was fixed to return strings instead of bytes and to accept
either.
files:
Doc/library/socket.rst | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -539,7 +539,7 @@
.. function:: if_nameindex()
Returns a list of network interface information
- (index, name as a byte string) tuples.
+ (index, name as a string) tuples.
:exc:`socket.error` if the system call fails for any reason.
Availability: Unix.
@@ -550,7 +550,7 @@
.. function:: if_nametoindex(if_name)
Returns a network interface index number corresponding to an
- interface name byte string.
+ interface name string.
:exc:`socket.error` if no interface with the given name exists.
Availability: Unix.
@@ -560,7 +560,7 @@
.. function:: if_indextoname(if_index)
- Returns a network interface name byte string corresponding to a
+ Returns a network interface name string corresponding to a
interface index.
:exc:`socket.error` if no interface with the given index exists.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list