added a patch to fix error in python module: TypeError: _argtypes_ must be a sequence of types [release 0.4.16-2mamba;Mon Dec 21 2020]
This commit is contained in:
parent
a37d76abd6
commit
cf11afd914
@ -0,0 +1,36 @@
|
||||
From cb41b94be34b31bc84eed0908858654632e57906 Mon Sep 17 00:00:00 2001
|
||||
From: Dominique Leuenberger <dimstar@opensuse.org>
|
||||
Date: Mon, 14 Dec 2020 15:39:22 +0100
|
||||
Subject: [PATCH] python bindings: fix "TypeError: _argtypes_ must be a
|
||||
sequence of types"
|
||||
|
||||
Fixes #125
|
||||
---
|
||||
bindings/python/libproxy.py | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/bindings/python/libproxy.py b/bindings/python/libproxy.py
|
||||
index a29b33a..2224a19 100644
|
||||
--- a/bindings/python/libproxy.py
|
||||
+++ b/bindings/python/libproxy.py
|
||||
@@ -44,9 +44,9 @@ def _load(name, *versions):
|
||||
# Load libproxy
|
||||
_libproxy = _load("proxy", 1)
|
||||
_libproxy.px_proxy_factory_new.restype = ctypes.POINTER(ctypes.c_void_p)
|
||||
-_libproxy.px_proxy_factory_free.argtypes = ctypes.c_void_p,
|
||||
+_libproxy.px_proxy_factory_free.argtypes = [ctypes.c_void_p]
|
||||
_libproxy.px_proxy_factory_get_proxies.restype = ctypes.POINTER(ctypes.c_void_p)
|
||||
-_libproxy.px_proxy_factory_free_proxies.argtypes = ctypes.POINTER(ctypes.c_void_p)
|
||||
+_libproxy.px_proxy_factory_free_proxies.argtypes = [ctypes.POINTER(ctypes.c_void_p)]
|
||||
|
||||
class ProxyFactory(object):
|
||||
"""A ProxyFactory object is used to provide potential proxies to use
|
||||
@@ -141,7 +141,7 @@ def getProxies(self, url):
|
||||
proxies.append(proxy_bytes.decode('utf-8', errors='replace'))
|
||||
i += 1
|
||||
|
||||
- _libproxy.px_proxy_factory_free_proxies(proxies)
|
||||
+ _libproxy.px_proxy_factory_free_proxies(array)
|
||||
|
||||
return proxies
|
||||
|
@ -1,6 +1,6 @@
|
||||
Name: libproxy
|
||||
Version: 0.4.16
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: A library that provides automatic proxy configuration management.
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
@ -11,6 +11,7 @@ Source: https://github.com/libproxy/libproxy.git/%{version}/libproxy-%{ve
|
||||
Patch0: libproxy-0.4.7-gcc-4.7.patch
|
||||
Patch1: libproxy-0.4.7-xulrunner.patch
|
||||
Patch2: libproxy-0.4.11-kde-4.10.patch
|
||||
Patch3: libproxy-0.4.16-upstream-fix-python-argtypes_must_be_a_sequence.patch
|
||||
License: LGPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
@ -146,6 +147,7 @@ This package contains the Webkit plugin.
|
||||
#%patch0 -p1
|
||||
#%patch1 -p1
|
||||
#%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
#export NetworkManager_CFLAGS="-I/usr/include/NetworkManager `pkg-config --cflags --libs dbus-1`"
|
||||
@ -256,6 +258,9 @@ mv %{buildroot}%{_prefix}/lib/python3* %{buildroot}%{_libdir}
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Dec 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.16-2mamba
|
||||
- added a patch to fix error in python module: TypeError: _argtypes_ must be a sequence of types
|
||||
|
||||
* Fri Dec 18 2020 Automatic Build System <autodist@mambasoft.it> 0.4.16-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user