]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scripts/lib/kdoc/kdoc_parser.py: move states to a separate class
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 15 Apr 2025 03:12:49 +0000 (11:12 +0800)
committerJonathan Corbet <corbet@lwn.net>
Mon, 21 Apr 2025 16:39:17 +0000 (10:39 -0600)
commitf9cdbc5781f2c2bf374d21d91b139ae5a2f62093
tree3206164df2c74a0f79dd1d6e52495031b09bb107
parent439111ee0cefe434788802237673c9a37f6b6d04
scripts/lib/kdoc/kdoc_parser.py: move states to a separate class

States are really enums. on Python, enums are actually classes,
as can be seen at:
https://docs.python.org/3/library/enum.html

Yet, I can't see any advantage of derivating the class from
enum class here. So, just place the states on a separate class.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/00cb4e0b8a1545bf7c4401b58213841db5cba2e2.1744685912.git.mchehab+huawei@kernel.org
scripts/lib/kdoc/kdoc_parser.py