Skip to content

Commit c62ca63

Browse files
committed
Clarifying comment, docs accuracy.
1 parent 6d94a08 commit c62ca63

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Doc/library/lzma.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,13 +373,13 @@ options. Valid filter IDs are as follows:
373373

374374
* :const:`!FILTER_ARM64`
375375

376-
Only works if :data:`LZMA_VERSION` and :data:`LZMA_RUNTIME_VERSION` are 5.4.0 or later.
376+
Only works if :data:`LZMA_RUNTIME_VERSION` is 5.4.0 or later.
377377

378378
.. versionadded:: 3.13
379379

380380
* :const:`!FILTER_RISCV`
381381

382-
Only works if :data:`LZMA_VERSION` and :data:`LZMA_RUNTIME_VERSION` are 5.6.0 or later.
382+
Only works if :data:`LZMA_RUNTIME_VERSION` is 5.6.0 or later.
383383

384384
.. versionadded:: 3.13
385385

Modules/_lzmamodule.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
#endif
2626

2727

28+
/*
29+
* If the lzma.h we're building against is so old as not to define these, this
30+
* provides their equivalent values so that the names remain defined in Python
31+
* regardless. lzma.LZMA_RUNTIME_VERSION is exposed to Python and is what
32+
* people can use to decide if they can use them at runtime.
33+
*/
2834
#ifndef LZMA_FILTER_ARM64
2935
#define LZMA_FILTER_ARM64 LZMA_VLI_C(0x0A)
3036
#endif

0 commit comments

Comments
 (0)