From 8a03222b15ac0ffebb5c290b24cdf4745d8bbb9d Mon Sep 17 00:00:00 2001 From: Tim Sandquist Date: Tue, 8 Nov 2022 21:32:08 -0600 Subject: [PATCH] arandr: replace inspect.getargspec() with inspect.getfullargspec() --- srcpkgs/arandr/patches/getfullargspec.patch | 13 +++++++++++++ srcpkgs/arandr/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/arandr/patches/getfullargspec.patch diff --git a/srcpkgs/arandr/patches/getfullargspec.patch b/srcpkgs/arandr/patches/getfullargspec.patch new file mode 100644 index 000000000000..4395ec182a18 --- /dev/null +++ b/srcpkgs/arandr/patches/getfullargspec.patch @@ -0,0 +1,13 @@ +diff --git a/screenlayout/gui.py b/screenlayout/gui.py +index 275dbdf..bc598cf 100644 +--- a/screenlayout/gui.py ++++ b/screenlayout/gui.py +@@ -48,7 +48,7 @@ def actioncallback(function): + + A first argument called 'self' is passed through. + """ +- argnames = inspect.getargspec(function)[0] ++ argnames = inspect.getfullargspec(function)[0] + if argnames[0] == 'self': + has_self = True + argnames.pop(0) diff --git a/srcpkgs/arandr/template b/srcpkgs/arandr/template index a54ee56be961..247f1652baa0 100644 --- a/srcpkgs/arandr/template +++ b/srcpkgs/arandr/template @@ -1,7 +1,7 @@ # Template file for 'arandr' pkgname=arandr version=0.1.10 -revision=7 +revision=8 build_style=python3-module hostmakedepends="gettext python3-setuptools python3-docutils" depends="python3-gobject gtk+3 xrandr"