Skip to content

Commit 6e04c64

Browse files
Apply suggestions from code review
Co-authored-by: Stan Ulbrych <stan@python.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent cd5aac2 commit 6e04c64

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

Doc/library/compression.zstd.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ the following constants:
847847

848848
.. data:: ZSTD_VERSION_INFO
849849

850-
A named tuple containing the four components of the zstd library
850+
A named tuple containing the three components of the zstd library
851851
version that was used for building the module:
852852
*major*, *minor*, and *patch*. All values are integers.
853853
The components can also be accessed by name, so ``zstd.ZSTD_VERSION_INFO[0]``

Doc/library/zlib.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,8 @@ the following constants:
499499
*major*, *minor*, *revision*, and *subversion*.
500500
All values are integers.
501501
The components can also be accessed by name, so ``zlib.VERSION_INFO[0]``
502-
is equivalent to ``zlib.VERSION_INFO.major`` and so on.
502+
The components can also be accessed by name, so ``zlib.ZLIB_VERSION_INFO[0]``
503+
is equivalent to ``zlib.ZLIB_VERSION_INFO.major`` and so on.
503504
This may be different from the zlib library actually used at runtime, which
504505
is available as :const:`zlib_version_info`.
505506

Lib/test/test_zstd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _test_zstd_version(self, v, string):
150150

151151
self.assertEqual(string, '%d.%d.%d' % v)
152152

153-
def test_lzma_version(self):
153+
def test_zstd_version(self):
154154
if support.verbose:
155155
print(f'ZSTD_VERSION = {zstd.ZSTD_VERSION}', flush=True)
156156
print(f'zstd_version = {zstd.zstd_version}', flush=True)

Modules/_bz2module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ static PyStructSequence_Field bzlib_version_fields[] = {
760760
{0}
761761
};
762762

763-
static PyStructSequence_Desc zlib_version_desc = {
763+
static PyStructSequence_Desc bzlib_version_desc = {
764764
"_bz2.bzlib_version_info", /* name */
765765
bzlib_version__doc__, /* doc */
766766
bzlib_version_fields, /* fields */
@@ -828,7 +828,7 @@ _bz2_exec(PyObject *module)
828828
return -1;
829829
}
830830
PyTypeObject *version_type;
831-
version_type = PyStructSequence_NewType(&zlib_version_desc);
831+
version_type = PyStructSequence_NewType(&bzlib_version_desc);
832832
if (version_type == NULL) {
833833
return -1;
834834
}

0 commit comments

Comments
 (0)