mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
scripts/kernel-doc: Fix kdoc for Python 3.9-3.11
The syntax used by the excess description suggestion change works on
Python 3.12+, while we need to support 3.9+.
Signed-off-by: Ryszard Knop <ryszard.knop@intel.com>
Tested-by: Akira Yokosawa <akiyks@gmail.com>
Fixes: d7758384cc ("scripts/kernel-doc: Suggest possible names for excess descriptions")
Reported-by: Akira Yokosawa <akiyks@gmail.com>
Closes: https://lore.kernel.org/22a9276d-c103-4306-a617-7f34abcd5c29@gmail.com/
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260731144508.912049-1-ryszard.knop@intel.com>
This commit is contained in:
parent
d699a5da10
commit
5ffcd42a9a
|
|
@ -601,7 +601,8 @@ class KernelDoc:
|
|||
if not suggestions:
|
||||
return ""
|
||||
|
||||
return f"(did you mean one of: '{"', '".join(suggestions)}')"
|
||||
joined_suggestions = "', '".join(suggestions)
|
||||
return f"(did you mean one of: '{joined_suggestions}')"
|
||||
|
||||
def check_sections(self, ln, decl_name, decl_type):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user