From: Benjamin Peterson Date: Tue, 12 May 2009 20:58:26 +0000 (+0000) Subject: two edits X-Git-Tag: v3.1rc1~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12f29ffb9f02dd23e11d7f9a54f0c5891c15ff5d;p=thirdparty%2FPython%2Fcpython.git two edits --- diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index ddd7e647a274..05a98506f1c8 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -784,8 +784,8 @@ always available. The standard streams are in text mode by default. To write or read binary data to these, use the underlying binary buffer. For example, to write bytes to :data:`stdout`, use ``sys.stdout.buffer.write(b'abc')``. Using - :meth:`io.TextIOWrapper.detach` streams can be made binary by default. For - example, this function sets all the standard streams to binary: :: + :meth:`io.TextIOBase.detach` streams can be made binary by default. For + example, this function sets all the standard streams to binary:: def make_streams_binary(): sys.stdin = sys.stdin.detach()