scripts: make-index-json: rework for old Python versions
authorEric Fahlgren <[email protected]>
Mon, 23 Jun 2025 22:50:23 +0000 (15:50 -0700)
committerPaul Spooren <[email protected]>
Tue, 24 Jun 2025 21:59:06 +0000 (23:59 +0200)
commit0c7d564b1dc2a1a237bc8ea125ec1b22f606cdbc
treece8eb16787767238e68b4fee1c112f1130c27960
parentd3324aa20841bc4bf93ed6ddd9890bc2a923f042
scripts: make-index-json: rework for old Python versions

The current code uses functions and features only found in newer
versions of Python, so rework to allow use on systems only supporting
older Python.  Tested on Python 3.8 (released Oct 2019), but should
work on 3.7 also.

Suggested-by: Chen Minqiang <[email protected]>
Signed-off-by: Eric Fahlgren <[email protected]>
scripts/make-index-json.py