• Bug#1101185: debian-goodies: DeprecationWarning in checkrestart due to

    From Yasuharu Iida@21:1/5 to All on Mon Mar 24 13:40:01 2025
    Package: debian-goodies
    Version: 0.88.2
    Severity: normal
    X-Debbugs-Cc: iiharu@alumni.tus.ac.jp

    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,

    -- System Information:
    Debian Release: trixie/sid
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.12.19-cloud-amd64 (SMP w/2 CPU threads; PREEMPT)
    Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)

    debian-goodies depends on no packages.

    Versions of packages debian-goodies recommends:
    ii apt 2.9.34
    ii curl 8.13.0~rc2-2
    pn dctrl-tools <none>
    pn elfutils <none>
    pn equivs <none>
    pn libfile-slurper-perl <none>
    pn libfile-which-perl <none>
    pn libipc-system-simple-perl <none>
    ii man-db 2.13.0-1
    ii perl 5.40.1-2
    pn popularity-contest <none>
    ii procps 2:4.0.4-7
    ii python3 3.13.2-2
    ii sensible-utils 0.0.24
    ii whiptail 0.52.24-4+b1

    Versions of packages debian-goodies suggests:
    ii apt-file 3.3
    pn ccze <none>
    pn debsums <none>
    pn konqueror <none>
    ii lsb-release 12.1-1
    pn lsof <none>
    ii openssh-client 1:9.9p2-2
    ii sudo 1.9.16p2-1
    ii w3m [www-browser] 0.5.3+git20230121-2.1
    pn xdg-utils <none>

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)