From: tsndqst <tsndqst@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] arandr: replace inspect.getargspec() with inspect.getfullargspec()
Date: Wed, 09 Nov 2022 05:45:34 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40404@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 531 bytes --]
There is a new pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages fix_arandr_python3.11
https://github.com/void-linux/void-packages/pull/40404
arandr: replace inspect.getargspec() with inspect.getfullargspec()
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
A patch file from https://github.com/void-linux/void-packages/pull/40404.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-fix_arandr_python3.11-40404.patch --]
[-- Type: text/x-diff, Size: 1555 bytes --]
From 8a03222b15ac0ffebb5c290b24cdf4745d8bbb9d Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
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"
next reply other threads:[~2022-11-09 4:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-09 4:45 tsndqst [this message]
2022-11-09 5:06 ` [PR PATCH] [Updated] " tsndqst
2022-11-09 8:32 ` [PR PATCH] [Merged]: " classabbyamp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40404@inbox.vuxu.org \
--to=tsndqst@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).