Control: tags 1024915 + patch Dear maintainer,
I've prepared an NMU for i3pystatus (versioned as 3.35+git20191126.5a8eaf4-2.1). The diff is attached to this message. Regards. SR
diff -Nru i3pystatus-3.35+git20191126.5a8eaf4/debian/changelog i3pystatus-3.35+git20191126.5a8eaf4/debian/changelog --- i3pystatus-3.35+git20191126.5a8eaf4/debian/changelog 2019-11-27 12:39:56.000000000 -0400 +++ i3pystatus-3.35+git20191126.5a8eaf4/debian/changelog 2022-12-25 09:33:18.000000000 -0400 @@ -1,3 +1,10 @@ +i3pystatus (3.35+git20191126.5a8eaf4-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Add support for Python 3.11. (Closes: #1024915) + + -- Stefano Rivera <stefa...@debian.org> Sun, 25 Dec 2022 09:33:18 -0400 + i3pystatus (3.35+git20191126.5a8eaf4-2) unstable; urgency=medium [ EstebanB ] diff -Nru i3pystatus-3.35+git20191126.5a8eaf4/debian/patches/0001-Migrate-to-inspect.getfullargspec.patch i3pystatus-3.35+git20191126.5a8eaf4/debian/patches/0001-Migrate-to-inspect.getfullargspec.patch --- i3pystatus-3.35+git20191126.5a8eaf4/debian/patches/0001-Migrate-to-inspect.getfullargspec.patch 1969-12-31 20:00:00.000000000 -0400 +++ i3pystatus-3.35+git20191126.5a8eaf4/debian/patches/0001-Migrate-to-inspect.getfullargspec.patch 2022-12-25 09:33:09.000000000 -0400 @@ -0,0 +1,33 @@ +From 1a54a8332e9398f18c6c4f8258f4853f2cc53013 Mon Sep 17 00:00:00 2001 +From: Stefano Rivera <stef...@rivera.za.net> +Date: Sun, 25 Dec 2022 09:26:31 -0400 +Subject: [PATCH] Migrate to inspect.getfullargspec() + +getargspec() was deprecated in 3.0 and removed in 3.11. + +Forwarded: https://github.com/enkore/i3pystatus/pull/844 +Bug-Debian: https://bugs.debian.org/1024915 +--- + i3pystatus/core/modules.py | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +--- a/i3pystatus/core/modules.py ++++ b/i3pystatus/core/modules.py +@@ -121,13 +121,14 @@ + tmp_cb = cb + + try: +- args_spec = inspect.getargspec(tmp_cb) ++ args_spec = inspect.getfullargspec(tmp_cb) + except Exception: +- args_spec = inspect.ArgSpec([], None, None, None) ++ args_spec = inspect.FullArgSpec( ++ [], None, None, None, None, None, {}) + + # Remove all variables present in kwargs that are not used in the + # callback, except if there is a keyword argument. +- if not args_spec.keywords: ++ if not args_spec.varkw: + kwargs = {k: v for k, v in kwargs.items() + if k in args_spec.args} + cb(*args, **kwargs) diff -Nru i3pystatus-3.35+git20191126.5a8eaf4/debian/patches/series i3pystatus-3.35+git20191126.5a8eaf4/debian/patches/series --- i3pystatus-3.35+git20191126.5a8eaf4/debian/patches/series 1969-12-31 20:00:00.000000000 -0400 +++ i3pystatus-3.35+git20191126.5a8eaf4/debian/patches/series 2022-12-25 09:32:32.000000000 -0400 @@ -0,0 +1 @@ +0001-Migrate-to-inspect.getfullargspec.patch