Skip to content

Commit e61e9a1

Browse files
emmatypingStanFromIrelandbrainwane
authored
Apply suggestions from Sumana and Stan
Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Sumana Harihareswara <[email protected]>
1 parent d04ce4f commit e61e9a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/compression.zstd.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Reading and writing compressed files
4949
Open a Zstandard-compressed file in binary or text mode, returning a
5050
:term:`file object`.
5151

52-
The *file* argument can be either an actual file name (given as a
52+
The *file* argument can be either a file name (given as a
5353
:class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object),
5454
in which case the named file is opened, or it can be an existing file object
5555
to read from or write to.
@@ -65,7 +65,7 @@ Reading and writing compressed files
6565
:class:`DecompressionParameter` for detailed information about supported
6666
parameters. The *zstd_dict* argument is a :class:`ZstdDict` instance to be
6767
used during decompression. When opening a file for reading, if the *level*
68-
argument is passed a :exc:`!TypeError` will be raised.
68+
argument is passed, a :exc:`!TypeError` will be raised.
6969

7070
When opening a file for writing, the *options* argument can be a dictionary
7171
providing advanced decompression parameters; see
@@ -241,7 +241,7 @@ Compressing and decompressing data in memory
241241
:attr:`~.CONTINUE`, :attr:`~.FLUSH_BLOCK`,
242242
or :attr:`~.FLUSH_FRAME`.
243243

244-
When you have finished providing data to the compressor, call the
244+
When all data has been provided to the compressor, call the
245245
:meth:`~.flush` method to finish the compression process.
246246

247247
.. method:: flush(mode)
@@ -767,4 +767,4 @@ Creating a compressed file using compression parameters:
767767
zstd.CompressionParameter.checksum_flag: 1
768768
}
769769
with zstd.open("file.zst", "w", options=options) as f:
770-
f.write(b"blah blah blah")
770+
f.write(b"Mind if I squeeze in?")

0 commit comments

Comments
 (0)