Skip to content

Commit 833d883

Browse files
miss-islingtonRogdhamAA-Turner
authored
[3.14] gh-132983: Fix docstrings in ZstdDict (GH-137321) (#137343)
Co-authored-by: Rogdham <[email protected]> Co-authored-by: Adam Turner <[email protected]>
1 parent ecdec64 commit 833d883

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Modules/_zstd/clinic/zstddict.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_zstd/zstddict.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ ZstdDict_dealloc(PyObject *ob)
119119
}
120120

121121
PyDoc_STRVAR(ZstdDict_dictid_doc,
122-
"the Zstandard dictionary, an int between 0 and 2**32.\n\n"
123-
"A non-zero value represents an ordinary Zstandard dictionary, "
122+
"The Zstandard dictionary, an int between 0 and 2**32.\n\n"
123+
"A non-zero value represents an ordinary Zstandard dictionary,\n"
124124
"conforming to the standardised format.\n\n"
125-
"The special value '0' means a 'raw content' dictionary,"
125+
"A value of zero indicates a 'raw content' dictionary,\n"
126126
"without any restrictions on format or content.");
127127

128128
static PyObject *
@@ -210,12 +210,12 @@ compress(dat, zstd_dict=zd.as_prefix)
210210
1. Prefix is compatible with long distance matching, while dictionary is not.
211211
2. It only works for the first frame, then the compressor/decompressor will
212212
return to no prefix state.
213-
3. When decompressing, must use the same prefix as when compressing."
213+
3. When decompressing, must use the same prefix as when compressing.
214214
[clinic start generated code]*/
215215

216216
static PyObject *
217217
_zstd_ZstdDict_as_prefix_get_impl(ZstdDict *self)
218-
/*[clinic end generated code: output=6f7130c356595a16 input=d59757b0b5a9551a]*/
218+
/*[clinic end generated code: output=6f7130c356595a16 input=45b3b6110f36d127]*/
219219
{
220220
return Py_BuildValue("Oi", self, DICT_TYPE_PREFIX);
221221
}

0 commit comments

Comments
 (0)