arandr: replace inspect.getargspec() with inspect.getfullargspec()

This commit is contained in:
Tim Sandquist 2022-11-08 21:32:08 -06:00 committed by classabbyamp
parent 68190a0223
commit 9b0890c7fd
2 changed files with 15 additions and 1 deletions

View File

@ -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)

View File

@ -1,10 +1,11 @@
# Template file for 'arandr' # Template file for 'arandr'
pkgname=arandr pkgname=arandr
version=0.1.10 version=0.1.10
revision=7 revision=8
build_style=python3-module build_style=python3-module
hostmakedepends="gettext python3-setuptools python3-docutils" hostmakedepends="gettext python3-setuptools python3-docutils"
depends="python3-gobject gtk+3 xrandr" depends="python3-gobject gtk+3 xrandr"
checkdepends="${depends}"
short_desc="Graphical frontend for XRandR" short_desc="Graphical frontend for XRandR"
maintainer="mid-kid <esteve.varela@gmail.com>" maintainer="mid-kid <esteve.varela@gmail.com>"
license="GPL-3.0-or-later" license="GPL-3.0-or-later"