Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scripts/lib/kdoc/kdoc_parser.py: remove a python 3.9 dependency

str.removesuffix() was added on Python 3.9, but rstrip()
actually does the same thing, as we just want to remove a single
character. It is also shorter.

So, use 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/f64cc4adef107ada26da4bfb7e4b7002dd783173.1744106242.git.mchehab+huawei@kernel.org

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
e4b2bd90 91d00bd5

+1 -1
+1 -1
scripts/lib/kdoc/kdoc_parser.py
··· 1641 1641 # Group continuation lines on prototypes 1642 1642 if self.state == self.STATE_PROTO: 1643 1643 if line.endswith("\\"): 1644 - prev += line.removesuffix("\\") 1644 + prev += line.rstrip("\\") 1645 1645 cont = True 1646 1646 1647 1647 if not prev_ln: