Subject: [PATCH 2/4] Fix Python getargspec deprecation preventing startup (Closes: #1028138)

From: Ryan Kavanagh <[email-masked]>
Date: Tue, 10 Jan 2023 11:19:46 -0500

---
 ...01-Fix-Python-getargspec-deprecation.patch | 23 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 debian/patches/0001-Fix-Python-getargspec-deprecation.patch
 create mode 100644 debian/patches/series

diff --git a/debian/patches/0001-Fix-Python-getargspec-deprecation.patch b/debian/patches/0001-Fix-Python-getargspec-deprecation.patch
new file mode 100644
index 0000000..c173d37
--- /dev/null
+++ b/debian/patches/0001-Fix-Python-getargspec-deprecation.patch
@@ -0,0 +1,23 @@
+From: novafacing <[email-masked]>
+Date: Sat, 17 Sep 2022 10:30:20 -0400
+Subject: Fix Python deprecation error preventing startup (Closes: #1028138)
+
+Forwarded: https://gitlab.com/arandr/arandr/-/merge_requests/10
+Author: Rowan Hart <[email-masked]>
+---
+ screenlayout/gui.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/screenlayout/gui.py b/screenlayout/gui.py
+index 275dbdf..bc598cf 100644
+--- a/screenlayout/gui.py
++++ b/screenlayout/gui.py
+@@ -45,7 +45,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/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a0305be
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-Python-getargspec-deprecation.patch
-- 
2.39.0