summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-05-12 20:58:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-05-12 20:58:26 (GMT)
commit12f29ffb9f02dd23e11d7f9a54f0c5891c15ff5d (patch)
treea0ffc13e9f4d53abdb772ce5b11f8caf2f133cca /Doc
parent4199d603fed4ea5aadb8c77fa118e3ea948fd109 (diff)
downloadcpython-12f29ffb9f02dd23e11d7f9a54f0c5891c15ff5d.zip
cpython-12f29ffb9f02dd23e11d7f9a54f0c5891c15ff5d.tar.gz
cpython-12f29ffb9f02dd23e11d7f9a54f0c5891c15ff5d.tar.bz2
two edits
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/sys.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index ddd7e64..05a9850 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()