x11/arandr: fix broken port

Fix the issue with deprecate call to inspect getargspec.
The change was done by upstream in the master branch,
but wasn't released yet.

PR:		279551
Approved by:	maintainer timeout
This commit is contained in:
Rodrigo Osorio 2024-07-17 14:03:56 +02:00
parent 11f8d796db
commit cb8a650b35
2 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= arandr PORTNAME= arandr
PORTVERSION= 0.1.10 PORTVERSION= 0.1.10
PORTREVISION= 3 PORTREVISION= 4
CATEGORIES= x11 deskutils CATEGORIES= x11 deskutils
MAINTAINER= sbz@FreeBSD.org MAINTAINER= sbz@FreeBSD.org

View File

@ -0,0 +1,11 @@
--- screenlayout/gui.py.orig 2024-06-06 09:08:21 UTC
+++ screenlayout/gui.py
@@ -45,7 +45,7 @@
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)