Github messages for voidlinux
 help / color / mirror / Atom feed
From: tsndqst <tsndqst@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] arandr: replace inspect.getargspec() with inspect.getfullargspec()
Date: Wed, 09 Nov 2022 06:06:09 +0100	[thread overview]
Message-ID: <20221109050609.FBo7wfoTYsjlfki2OYWMo2sBlEYX2ds2iHM1LNlf0qU@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40404@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

There is an updated 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: 1705 bytes --]

From 815e48e153240cdcbbe827ea492ecef99d850272 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                     |  3 ++-
 2 files changed, 15 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..2a9822fb3229 100644
--- a/srcpkgs/arandr/template
+++ b/srcpkgs/arandr/template
@@ -1,10 +1,11 @@
 # 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"
+checkdepends="${depends}"
 short_desc="Graphical frontend for XRandR"
 maintainer="mid-kid <esteve.varela@gmail.com>"
 license="GPL-3.0-or-later"

  reply	other threads:[~2022-11-09  5:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-09  4:45 [PR PATCH] " tsndqst
2022-11-09  5:06 ` tsndqst [this message]
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=20221109050609.FBo7wfoTYsjlfki2OYWMo2sBlEYX2ds2iHM1LNlf0qU@z \
    --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).