15
0
forked from pool/python-Paste

- Add patch support-python-311.patch:

* Filter Deprecationwarning for one test script.
- Remove Python 2 gubbins.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Paste?expand=0&rev=60
This commit is contained in:
2023-01-09 05:48:18 +00:00
committed by Git OBS Bridge
parent 4705ea1c90
commit 6aa6e7a548
3 changed files with 27 additions and 13 deletions

16
support-python-311.patch Normal file
View File

@@ -0,0 +1,16 @@
Index: Paste-3.5.2/tests/cgiapp_data/form.cgi
===================================================================
--- Paste-3.5.2.orig/tests/cgiapp_data/form.cgi
+++ Paste-3.5.2/tests/cgiapp_data/form.cgi
@@ -2,6 +2,11 @@
from __future__ import print_function
+import warnings
+# Since the Paste machinery expects these scripts to return no stderr,
+# filter all DeprecationWarnings
+warnings.simplefilter("ignore", category=DeprecationWarning)
+
import cgi
import six