Blob Blame History Raw
From 5cf1f3aa93e38cfa374fc224b29d6fe9cd426c68 Mon Sep 17 00:00:00 2001
From: novafacing <rowanbhart@gmail.com>
Date: Sat, 17 Sep 2022 10:30:20 -0400
Subject: [PATCH] Fix deprecation of inspect.getargspec() using dropin
 replacement inspect.getfullargspec()

---
 screenlayout/gui.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/screenlayout/gui.py b/screenlayout/gui.py
index ca768dc..66b3214 100644
--- a/screenlayout/gui.py
+++ b/screenlayout/gui.py
@@ -43,7 +43,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)
-- 
GitLab