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:
16
support-python-311.patch
Normal file
16
support-python-311.patch
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user