forked from pool/python39
- Security
- gh-139700: Check consistency of the zip64 end of central
directory record. Support records with “zip64 extensible data”
if there are no bytes prepended to the ZIP file.
- gh-139400: xml.parsers.expat: Make sure that parent Expat
parsers are only garbage-collected once they are no longer
referenced by subparsers created by
ExternalEntityParserCreate(). Patch by Sebastian Pipping.
- gh-121227: Raise an SSL.SSLError if an empty protocols argument
is passed to ssl.SSLContext.set_npn_protocols() to fix
CVE-2024-5642.
- gh-135661: Fix parsing start and end tags in
html.parser.HTMLParser according to the HTML5 standard.
* Whitespaces no longer accepted between </ and the tag name.
E.g. </ script> does not end the script section.
* Vertical tabulation (\v) and non-ASCII whitespaces no longer
recognized as whitespaces. The only whitespaces are \t\n\r\f
and space.
* Null character (U+0000) no longer ends the tag name.
* Attributes and slashes after the tag name in end tags are now
ignored, instead of terminating after the first > in quoted
attribute value. E.g. </script/foo=">"/>.
* Multiple slashes and whitespaces between the last attribute
and closing > are now ignored in both start and end tags. E.g.
<a foo=bar/ //>.
* Multiple = between attribute name and value are no longer
collapsed. E.g. <a foo==bar> produces attribute “foo” with
value “=bar”.
- gh-135661: Fix CDATA section parsing in html.parser.HTMLParser
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python39?expand=0&rev=245
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
---
|
|
Doc/tools/extensions/pyspecific.py | 10 ++++++++--
|
|
1 file changed, 8 insertions(+), 2 deletions(-)
|
|
|
|
--- a/Doc/tools/extensions/pyspecific.py
|
|
+++ b/Doc/tools/extensions/pyspecific.py
|
|
@@ -28,7 +28,13 @@ try:
|
|
except ImportError:
|
|
from sphinx.environment import NoUri
|
|
from sphinx.locale import _ as sphinx_gettext
|
|
-from sphinx.util import status_iterator, logging
|
|
+try:
|
|
+ from sphinx.util.display import status_iterator
|
|
+except ImportError:
|
|
+ # This method was moved into sphinx.util.display in Sphinx 6.1.0. Before
|
|
+ # that it resided in sphinx.util.
|
|
+ from sphinx.util import status_iterator
|
|
+from sphinx.util import logging
|
|
from sphinx.util.nodes import split_explicit_title
|
|
from sphinx.writers.text import TextWriter, TextTranslator
|
|
from sphinx.writers.latex import LaTeXTranslator
|
|
@@ -338,7 +344,7 @@ class PyAbstractMethod(PyMethod):
|
|
def expand_version_arg(argument, release):
|
|
"""Expand "next" to the current version"""
|
|
if argument == 'next':
|
|
- return translators['sphinx'].gettext('{} (unreleased)').format(release)
|
|
+ return sphinx_gettext('{} (unreleased)').format(release)
|
|
return argument
|
|
|
|
|