Matej Cepl
07285bcb8c
- (CVE-2020-10735, bsc#1203125). Converting between int and str in bases other than 2 (binary), 4, 8 (octal), 16 (hexadecimal), or 32 such as base 10 (decimal) now raises a ValueError if the number of digits in string form is above a limit to avoid potential denial of service attacks due to the algorithmic complexity. This new limit can be configured or disabled by environment variable, command line flag, or sys APIs. See the integer string conversion length limitation documentation. The default limit is 4300 digits in string form. - (CVE-2021-28861, bsc#1202624) http.server: Fix an open redirection vulnerability in the HTTP server when an URI path starts with //. Vulnerability discovered, and initial fix proposed, by Hamza Avvan. - Also other bugfixes: - Fix contextvars HAMT implementation to handle iteration over deep trees. The bug was discovered and fixed by Eli Libman. See MagicStack/immutables#84 for more details. - Fix ensurepip environment isolation for subprocess running pip. - Raise ProgrammingError instead of segfaulting on recursive usage of cursors in sqlite3 converters. Patch by Sergey Fedoseev. - Add a new gh role to the documentation to link to GitHub issues. - Pin Jinja to a version compatible with Sphinx version 2.4.4. - test_ssl is now checking for supported TLS version and protocols in more tests. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python38?expand=0&rev=104
27 lines
979 B
Diff
27 lines
979 B
Diff
From 960bb883769e5c64a63b014590d75654db87ffb0 Mon Sep 17 00:00:00 2001
|
|
From: Pablo Galindo <Pablogsal@gmail.com>
|
|
Date: Fri, 10 May 2019 22:58:17 +0100
|
|
Subject: [PATCH] Fix sphinx deprecation warning about env.note_versionchange()
|
|
(GH-13236)
|
|
|
|
---
|
|
Doc/tools/extensions/pyspecific.py | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
--- a/Doc/tools/extensions/pyspecific.py
|
|
+++ b/Doc/tools/extensions/pyspecific.py
|
|
@@ -384,7 +384,12 @@ class DeprecatedRemoved(Directive):
|
|
translatable=False)
|
|
node.append(para)
|
|
env = self.state.document.settings.env
|
|
- env.get_domain('changeset').note_changeset(node)
|
|
+ # new method
|
|
+ if hasattr(env, 'get_domain'):
|
|
+ env.get_domain('changeset').note_changeset(node)
|
|
+ # deprecated pre-Sphinx-2 method
|
|
+ else:
|
|
+ env.note_versionchange('deprecated', version[0], node, self.lineno)
|
|
return [node] + messages
|
|
|
|
|