]> git.ipfire.org Git - thirdparty/linux.git/commit
scripts: sphinx-pre-install: convert is_optional to a class
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Aug 2025 15:52:41 +0000 (17:52 +0200)
committerJonathan Corbet <corbet@lwn.net>
Wed, 13 Aug 2025 16:19:17 +0000 (10:19 -0600)
commit9ecda2e10101537e97bcb2b05049e58306ac4e1b
tree540048ff84bc3d1ad3ab3e8c8a1d2be282001d78
parent8cd256524a920782268a0dd7e3e0404c34bfc65f
scripts: sphinx-pre-install: convert is_optional to a class

When is_optional was added in Perl, it was a boolean. With
time, it ended becoming a sort of enum, which makes the
module harder to maintain.

Convert it to a enum-like class and add more options to it.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/42290a24f3b1dbea9ebe19747cf5622bb2f2cf5c.1754992972.git.mchehab+huawei@kernel.org
scripts/sphinx-pre-install.py