summaryrefslogtreecommitdiff
diff options
authorThomas Goirand <zigo@debian.org>2023-01-30 09:10:04 +0100
committergit-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com>2023-01-30 16:53:50 +0000
commitdad2923dc4687489d28d241fa34646bd53d957a8 (patch)
treeed1d3465e235c40828911237e583f7c3d14a391d
parent1aa2acee05f4f3ff5f14f87d6b01017fb23cfee1 (diff)
Imported using git-ubuntu import.
Notes
Notes: * Standard-Version: 4.6.1. * Add py3.11-getargspec-is-removed.patch (Closes: #1028731).
-rw-r--r--debian/changelog7
-rw-r--r--debian/control2
-rw-r--r--debian/patches/py3.11-getargspec-is-removed.patch30
-rw-r--r--debian/patches/series1
4 files changed, 39 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 5ed7d48..53e039b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-crank (0.7.2-6) unstable; urgency=medium
+
+ * Standard-Version: 4.6.1.
+ * Add py3.11-getargspec-is-removed.patch (Closes: #1028731).
+
+ -- Thomas Goirand <zigo@debian.org> Mon, 30 Jan 2023 09:10:04 +0100
+
python-crank (0.7.2-5) unstable; urgency=medium
[ Ondřej Nový ]
diff --git a/debian/control b/debian/control
index b7f4390..14006f8 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,7 @@ Build-Depends:
Build-Depends-Indep:
python3-nose,
python3-webob,
-Standards-Version: 4.4.0
+Standards-Version: 4.6.1
Vcs-Browser: https://salsa.debian.org/openstack-team/python/python-crank
Vcs-Git: https://salsa.debian.org/openstack-team/python/python-crank.git
Homepage: https://github.com/TurboGears/crank
diff --git a/debian/patches/py3.11-getargspec-is-removed.patch b/debian/patches/py3.11-getargspec-is-removed.patch
new file mode 100644
index 0000000..9ffacc2
--- /dev/null
+++ b/debian/patches/py3.11-getargspec-is-removed.patch
@@ -0,0 +1,30 @@
+Description: Python 3.11: getargspec() is removed
+Author: Thomas Goirand <zigo@debian.org>
+Bug-Debian: https://bugs.debian.org/1028731
+Forwarded: no
+Last-Update: 2023-01-30
+
+--- python-crank-0.7.2.orig/crank/util.py
++++ python-crank-0.7.2/crank/util.py
+@@ -6,7 +6,7 @@ MIT License
+ """
+
+ import collections, sys, string
+-from inspect import getargspec
++from inspect import getfullargspec
+
+ __all__ = [
+ 'get_argspec', 'get_params_with_argspec', 'remove_argspec_params_from_params',
+@@ -31,10 +31,10 @@ def get_argspec(func):
+ try:
+ argspec = _cached_argspecs[im_func]
+ except KeyError:
+- spec = getargspec(im_func)
++ spec = getfullargspec(im_func)
+ argvals = spec[3]
+
+- # this is a work around for a crappy api choice in getargspec
++ # this is a work around for a crappy api choice in getfullargspec
+ if argvals is None:
+ argvals = []
+
diff --git a/debian/patches/series b/debian/patches/series
index 54c3199..42627ba 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
remove-broken-test.patch
+py3.11-getargspec-is-removed.patch