Skip to content

Commit 1149832

Browse files
committed
Remove ref to Meta and clean up mode usage
1 parent e61e9a1 commit 1149832

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Doc/library/compression.zstd.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
.. module:: compression.zstd
55
:synopsis: Low-level interface to compression and decompression routines in
6-
Meta's zstd library
6+
the zstd library.
77

88
.. versionadded:: 3.14
99

@@ -54,9 +54,9 @@ Reading and writing compressed files
5454
in which case the named file is opened, or it can be an existing file object
5555
to read from or write to.
5656

57-
The mode argument can be either ``'r'`` for reading (default), ``'w'`` for
58-
overwriting, ``'a'`` for appending, or ``'x'`` for exclusive creation. These
59-
can equivalently be given as ``'rb'``, ``'wb'``, ``'ab'``, and ``'xb'``
57+
The mode argument can be either ``'rb'`` for reading (default), ``'wb'`` for
58+
overwriting, ``'ab'`` for appending, or ``'xb'`` for exclusive creation.
59+
These can equivalently be given as ``'r'``, ``'w'``, ``'a'``, and ``'x'``
6060
respectively. You may also open in text mode with ``'rt'``, ``'wt'``,
6161
``'at'``, and ``'xt'`` respectively.
6262

@@ -84,7 +84,7 @@ Reading and writing compressed files
8484
handling behavior, and line endings.
8585

8686

87-
.. class:: ZstdFile(file, /, mode='r', *, level=None, options=None, \
87+
.. class:: ZstdFile(file, /, mode='rb', *, level=None, options=None, \
8888
zstd_dict=None)
8989

9090
Open a Zstandard-compressed file in binary mode.
@@ -96,9 +96,9 @@ Reading and writing compressed files
9696
wrapping an existing file object, the wrapped file will not be closed when
9797
the :class:`ZstdFile` is closed.
9898

99-
The *mode* argument can be either ``'r'`` for reading (default), ``'w'`` for
100-
overwriting, ``'x'`` for exclusive creation, or ``'a'`` for appending. These
101-
can equivalently be given as ``'rb'``, ``'wb'``, ``'xb'`` and ``'ab'``
99+
The *mode* argument can be either ``'rb'`` for reading (default), ``'wb'``
100+
for overwriting, ``'xb'`` for exclusive creation, or ``'ab'`` for appending.
101+
These can equivalently be given as ``'r'``, ``'w'``, ``'x'`` and ``'a'``
102102
respectively.
103103

104104
If *file* is a file object (rather than an actual file name), a mode of

0 commit comments

Comments
 (0)