@@ -36,9 +36,9 @@ def __init__(self, file, /, mode='r', *,
3636
3737 *file* can be either an file-like object, or a file name to open.
3838
39- *mode* can be 'r' for reading (default), 'w' for (over)writing, 'x' for
40- creating exclusively, or 'a' for appending. These can equivalently be
41- given as 'rb', 'wb', 'xb' and 'ab' respectively.
39+ *mode* can be 'r' for reading (default), 'w' for (over)writing, 'x'
40+ for creating exclusively, or 'a' for appending. These can
41+ equivalently be given as 'rb', 'wb', 'xb' and 'ab' respectively.
4242
4343 *level* is an optional int specifying the compression level to use,
4444 or COMPRESSION_LEVEL_DEFAULT if not given.
@@ -296,26 +296,27 @@ def open(file, /, mode='rb', *, level=None, options=None, zstd_dict=None,
296296 encoding = None , errors = None , newline = None ):
297297 """Open a Zstandard compressed file in binary or text mode.
298298
299- file can be either a file name (given as a str, bytes, or PathLike object),
300- in which case the named file is opened, or it can be an existing file object
301- to read from or write to.
299+ file can be either a file name (given as a str, bytes, or PathLike
300+ object), in which case the named file is opened, or it can be
301+ an existing file object to read from or write to.
302302
303- The mode parameter can be 'r', 'rb' (default), 'w', 'wb', 'x', 'xb', 'a',
304- 'ab' for binary mode, or 'rt', 'wt', 'xt', 'at' for text mode.
303+ The mode parameter can be 'r', 'rb' (default), 'w', 'wb', 'x', 'xb',
304+ 'a', ' ab' for binary mode, or 'rt', 'wt', 'xt', 'at' for text mode.
305305
306- The level, options, and zstd_dict parameters specify the settings the same
307- as ZstdFile.
306+ The level, options, and zstd_dict parameters specify the settings the
307+ same as ZstdFile.
308308
309309 When using read mode (decompression), the options parameter is a dict
310- representing advanced decompression options. The level parameter is not
311- supported in this case. When using write mode (compression), only one of
312- level, an int representing the compression level, or options, a dict
313- representing advanced compression options, may be passed. In both modes,
314- zstd_dict is a ZstdDict instance containing a trained Zstandard dictionary.
315-
316- For binary mode, this function is equivalent to the ZstdFile constructor:
317- ZstdFile(filename, mode, ...). In this case, the encoding, errors and
318- newline parameters must not be provided.
310+ representing advanced decompression options. The level parameter is not
311+ supported in this case. When using write mode (compression), only one
312+ of level, an int representing the compression level, or options, a dict
313+ representing advanced compression options, may be passed. In both
314+ modes, zstd_dict is a ZstdDict instance containing a trained Zstandard
315+ dictionary.
316+
317+ For binary mode, this function is equivalent to the ZstdFile
318+ constructor: ZstdFile(filename, mode, ...). In this case, the encoding,
319+ errors and newline parameters must not be provided.
319320
320321 For text mode, an ZstdFile object is created, and wrapped in an
321322 io.TextIOWrapper instance with the specified encoding, error handling
0 commit comments