Control: tags 1026621 + patch
Control: tags 1026621 + pending

Dear maintainer,

I've prepared an NMU for flask-flatpages (versioned as 0.6-1.2) and 
uploaded it to DELAYED/1. Please feel free to tell me if I should cancel it.

cu
Adrian
diff -Nru flask-flatpages-0.6/debian/changelog flask-flatpages-0.6/debian/changelog
--- flask-flatpages-0.6/debian/changelog	2019-10-18 03:12:51.000000000 +0300
+++ flask-flatpages-0.6/debian/changelog	2023-02-06 23:50:07.000000000 +0200
@@ -1,3 +1,10 @@
+flask-flatpages (0.6-1.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport upstream fix for Python 3.11. (Closes: #1026621)
+
+ -- Adrian Bunk <b...@debian.org>  Mon, 06 Feb 2023 23:50:07 +0200
+
 flask-flatpages (0.6-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru flask-flatpages-0.6/debian/patches/0001-Fix-77-replace-getargspec-if-possible.patch flask-flatpages-0.6/debian/patches/0001-Fix-77-replace-getargspec-if-possible.patch
--- flask-flatpages-0.6/debian/patches/0001-Fix-77-replace-getargspec-if-possible.patch	1970-01-01 02:00:00.000000000 +0200
+++ flask-flatpages-0.6/debian/patches/0001-Fix-77-replace-getargspec-if-possible.patch	2023-02-06 23:50:04.000000000 +0200
@@ -0,0 +1,36 @@
+From b57d0458acf012cf3d7dcfa41bbc4d60e02d8309 Mon Sep 17 00:00:00 2001
+From: Joachim Lusiardi <j...@solute.de>
+Date: Wed, 8 Jul 2020 10:25:17 +0200
+Subject: Fix #77: replace getargspec if possible
+
+This uses `getfullargspec` instead of `getargspec` if running with
+python3. For python2 it sticks to `getargspec`.
+---
+ flask_flatpages/flatpages.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/flask_flatpages/flatpages.py b/flask_flatpages/flatpages.py
+index 40443ae..5023ef6 100644
+--- a/flask_flatpages/flatpages.py
++++ b/flask_flatpages/flatpages.py
+@@ -10,7 +10,7 @@ Flatpages extension.
+ import operator
+ import os
+ 
+-from inspect import getargspec
++from inspect import getfullargspec
+ from itertools import takewhile
+ 
+ from flask import abort
+@@ -284,7 +284,7 @@ class FlatPages(object):
+             body = page.body
+ 
+             try:
+-                args_length = len(getargspec(html_renderer).args)
++                args_length = len(getfullargspec(html_renderer).args)
+             except TypeError:
+                 return html_renderer(body)
+ 
+-- 
+2.30.2
+
diff -Nru flask-flatpages-0.6/debian/patches/series flask-flatpages-0.6/debian/patches/series
--- flask-flatpages-0.6/debian/patches/series	2015-10-23 18:24:04.000000000 +0300
+++ flask-flatpages-0.6/debian/patches/series	2023-02-06 23:50:07.000000000 +0200
@@ -1 +1,2 @@
 remove-github-ribbons.patch
+0001-Fix-77-replace-getargspec-if-possible.patch

Reply via email to