Dear Maintainer,
I am experiencing a DeprecationWarning when running checkrestart. The warning message is as follows:
/usr/sbin/checkrestart:856: DeprecationWarning: 'maxsplit' is passed as positional argument
data = re.split(r"\s+", output, 3)
This warning is due to a change in Python 3.13, where passing maxsplit as a positional argument to re.split() is deprecated. According to the Python documentation:
Deprecated since version 3.13: Passing maxsplit and flags as positional arguments is deprecated. In future Python versions they will be keyword-only parameters.
(https://docs.python.org/3/library/re.html)
To fix this issue, re.split(r"\s+", output, 3) should be modified to use maxsplit as a keyword argument:
data = re.split(r"\s+", output, maxsplit=3)
Best regards,