forked from pool/python310
Accepting request 1071070 from devel:languages:python:Factory
- Add invalid-json.patch fixing invalid JSON in Doc/howto/logging-cookbook.rst (somehow similar to gh#python/cpython#102582). OBS-URL: https://build.opensuse.org/request/show/1071070 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python310?expand=0&rev=30
This commit is contained in:
commit
c64e33ed3e
44
invalid-json.patch
Normal file
44
invalid-json.patch
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
Doc/howto/logging-cookbook.rst | 24 ++++++++++++++----------
|
||||||
|
1 file changed, 14 insertions(+), 10 deletions(-)
|
||||||
|
|
||||||
|
--- a/Doc/howto/logging-cookbook.rst
|
||||||
|
+++ b/Doc/howto/logging-cookbook.rst
|
||||||
|
@@ -340,10 +340,12 @@ adding a ``filters`` section parallel to
|
||||||
|
|
||||||
|
.. code-block:: json
|
||||||
|
|
||||||
|
- "filters": {
|
||||||
|
- "warnings_and_below": {
|
||||||
|
- "()" : "__main__.filter_maker",
|
||||||
|
- "level": "WARNING"
|
||||||
|
+ {
|
||||||
|
+ "filters": {
|
||||||
|
+ "warnings_and_below": {
|
||||||
|
+ "()" : "__main__.filter_maker",
|
||||||
|
+ "level": "WARNING"
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -351,12 +353,14 @@ and changing the section on the ``stdout
|
||||||
|
|
||||||
|
.. code-block:: json
|
||||||
|
|
||||||
|
- "stdout": {
|
||||||
|
- "class": "logging.StreamHandler",
|
||||||
|
- "level": "INFO",
|
||||||
|
- "formatter": "simple",
|
||||||
|
- "stream": "ext://sys.stdout",
|
||||||
|
- "filters": ["warnings_and_below"]
|
||||||
|
+ {
|
||||||
|
+ "stdout": {
|
||||||
|
+ "class": "logging.StreamHandler",
|
||||||
|
+ "level": "INFO",
|
||||||
|
+ "formatter": "simple",
|
||||||
|
+ "stream": "ext://sys.stdout",
|
||||||
|
+ "filters": ["warnings_and_below"]
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
A filter is just a function, so we can define the ``filter_maker`` (a factory
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 13 08:39:53 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Add invalid-json.patch fixing invalid JSON in
|
||||||
|
Doc/howto/logging-cookbook.rst (somehow similar to
|
||||||
|
gh#python/cpython#102582).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 1 20:59:04 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
Wed Mar 1 20:59:04 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -170,6 +170,9 @@ Patch36: support-expat-CVE-2022-25236-patched.patch
|
|||||||
# blocklist bypass via the urllib.parse component when supplying
|
# blocklist bypass via the urllib.parse component when supplying
|
||||||
# a URL that starts with blank characters
|
# a URL that starts with blank characters
|
||||||
Patch37: CVE-2023-24329-blank-URL-bypass.patch
|
Patch37: CVE-2023-24329-blank-URL-bypass.patch
|
||||||
|
# PATCH-FIX-UPSTREAM invalid-json.patch gh#python/cpython#102582 mcepl@suse.com
|
||||||
|
# We require valid JSON in documentation
|
||||||
|
Patch38: invalid-json.patch
|
||||||
BuildRequires: autoconf-archive
|
BuildRequires: autoconf-archive
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -443,6 +446,7 @@ other applications.
|
|||||||
%patch35 -p1
|
%patch35 -p1
|
||||||
%patch36 -p1
|
%patch36 -p1
|
||||||
%patch37 -p1
|
%patch37 -p1
|
||||||
|
%patch38 -p1
|
||||||
|
|
||||||
# drop Autoconf version requirement
|
# drop Autoconf version requirement
|
||||||
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac
|
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac
|
||||||
|
Loading…
Reference in New Issue
Block a user