diff options
author | Azure | 2023-05-06 13:21:12 -0400 |
---|---|---|
committer | Azure | 2023-05-06 13:23:08 -0400 |
commit | ec45c4bec3d1f2e8675b3652043c0d1bc0f8382c (patch) | |
tree | 0ea1ab5b15838b779bfa953642dd61e63f9db393 | |
parent | 1e1da6c1002fdac5baf5cf69ae4b3b76271a9c34 (diff) | |
download | aur-ec45c4bec3d1f2e8675b3652043c0d1bc0f8382c.tar.gz |
Swallow extra returns from getfullargspec
This fixes actions, etc.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 | ||||
-rw-r--r-- | getfullargspec.patch | 4 |
3 files changed, 6 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = gajim-1.3 pkgdesc = Jabber/XMPP instant messenger client written in Python with GTK+, version 1.3 (Multiwindow) pkgver = 1.3.3 - pkgrel = 3 + pkgrel = 4 epoch = 1 url = https://gajim.org/ arch = any @@ -1,4 +1,5 @@ # Maintainer: Azure <azure@fox.blue> +# Contributor: Inkeso # Based on gajim-git by: # Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> # Contributor: Maxime "pep" Buquet <archlinux@bouah.net> @@ -13,7 +14,7 @@ _name=gajim pkgname="$_name-1.3" epoch=1 pkgver=1.3.3 -pkgrel=3 +pkgrel=4 pkgdesc="Jabber/XMPP instant messenger client written in Python with GTK+, version 1.3 (Multiwindow)" arch=('any') url="https://gajim.org/" @@ -50,7 +51,7 @@ source=("$_name::git+https://dev.gajim.org/gajim/gajim.git#tag=gajim-1.3.3" "getfullargspec.patch") md5sums=('SKIP' 'f0582899b5c0d096171fbdbc4c6bf1df' - 'dbbf993b9d6f7b07e5ba42d486f87839') + '0ad35d6309caefe9737b706d3a5b4f2c') prepare() { cd "$_name" diff --git a/getfullargspec.patch b/getfullargspec.patch index c542c37519a3..f78e97e9e855 100644 --- a/getfullargspec.patch +++ b/getfullargspec.patch @@ -16,7 +16,7 @@ index 34707a83f..cbafbe573 100644 preserving their order. """ - names, var_args, var_kwargs, defaults = getargspec(self.handler) # pylint: disable=W1505 -+ names, var_args, var_kwargs, defaults = getfullargspec(self.handler) # pylint: disable=W1505 ++ names, var_args, var_kwargs, defaults, *_ = getfullargspec(self.handler) # pylint: disable=W1505 # Behavior of this code need to be checked. Might yield # incorrect results on some rare occasions. @@ -29,7 +29,7 @@ index 5f54a1209..9e61de1d4 100644 func = self.realClassMethods[name] try: - args, varargs, varkw, defaults = inspect.getargspec(func) -+ args, varargs, varkw, defaults = inspect.getfullargspec(func) ++ args, varargs, varkw, defaults, *_ = inspect.getfullargspec(func) except TypeError: # func is not a Python function. It is probably a builtin, # such as __repr__ or __coerce__. TODO: Checking? |