Kaydet (Commit) 8c16cb9f authored tarafından Georg Brandl's avatar Georg Brandl

Closes #26435: fix syntax in directives. Thanks to Jakub Stasiak.

üst 2305b3cd
...@@ -876,7 +876,7 @@ tarballs or zipfiles. ...@@ -876,7 +876,7 @@ tarballs or zipfiles.
archive. *root_dir* and *base_dir* both default to the current directory. archive. *root_dir* and *base_dir* both default to the current directory.
Returns the name of the archive file. Returns the name of the archive file.
.. versionchanged: 3.5 .. versionchanged:: 3.5
Added support for the ``xztar`` format. Added support for the ``xztar`` format.
...@@ -891,7 +891,7 @@ tarballs or zipfiles. ...@@ -891,7 +891,7 @@ tarballs or zipfiles.
compression extension (``.gz``, ``.bz2``, ``.xz`` or ``.Z``). Return the compression extension (``.gz``, ``.bz2``, ``.xz`` or ``.Z``). Return the
output filename. output filename.
.. versionchanged: 3.5 .. versionchanged:: 3.5
Added support for the ``xz`` compression. Added support for the ``xz`` compression.
...@@ -1234,7 +1234,7 @@ other utility module. ...@@ -1234,7 +1234,7 @@ other utility module.
<imp.get_tag>` in their name, in a :file:`__pycache__` subdirectory <imp.get_tag>` in their name, in a :file:`__pycache__` subdirectory
instead of files without tag in the current directory. instead of files without tag in the current directory.
.. versionchanged: 3.5 .. versionchanged:: 3.5
Create ``.pyc`` files according to :pep:`488`. Create ``.pyc`` files according to :pep:`488`.
......
...@@ -101,9 +101,10 @@ Import this class from the :mod:`email.charset` module. ...@@ -101,9 +101,10 @@ Import this class from the :mod:`email.charset` module.
returns the string ``base64`` if *body_encoding* is ``BASE64``, and returns the string ``base64`` if *body_encoding* is ``BASE64``, and
returns the string ``7bit`` otherwise. returns the string ``7bit`` otherwise.
.. XXX to_splittable and from_splittable are not there anymore! .. XXX to_splittable and from_splittable are not there anymore!
.. method to_splittable(s) .. to_splittable(s)
Convert a possibly multibyte string to a safely splittable format. *s* is Convert a possibly multibyte string to a safely splittable format. *s* is
the string to split. the string to split.
...@@ -118,7 +119,7 @@ Import this class from the :mod:`email.charset` module. ...@@ -118,7 +119,7 @@ Import this class from the :mod:`email.charset` module.
the Unicode replacement character ``'U+FFFD'``. the Unicode replacement character ``'U+FFFD'``.
.. method from_splittable(ustr[, to_output]) .. from_splittable(ustr[, to_output])
Convert a splittable string back into an encoded string. *ustr* is a Convert a splittable string back into an encoded string. *ustr* is a
Unicode string to "unsplit". Unicode string to "unsplit".
......
...@@ -174,7 +174,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length ...@@ -174,7 +174,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
Optional arguments *start* and *end* are interpreted as in slice notation. Optional arguments *start* and *end* are interpreted as in slice notation.
Returns ``-1`` on failure. Returns ``-1`` on failure.
.. versionchanged: 3.5 .. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. Writable :term:`bytes-like object` is now accepted.
...@@ -237,7 +237,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length ...@@ -237,7 +237,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
Optional arguments *start* and *end* are interpreted as in slice notation. Optional arguments *start* and *end* are interpreted as in slice notation.
Returns ``-1`` on failure. Returns ``-1`` on failure.
.. versionchanged: 3.5 .. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. Writable :term:`bytes-like object` is now accepted.
...@@ -267,7 +267,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length ...@@ -267,7 +267,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
were written. If the mmap was created with :const:`ACCESS_READ`, then were written. If the mmap was created with :const:`ACCESS_READ`, then
writing to it will raise a :exc:`TypeError` exception. writing to it will raise a :exc:`TypeError` exception.
.. versionchanged: 3.5 .. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. Writable :term:`bytes-like object` is now accepted.
......
...@@ -155,7 +155,7 @@ and (read-only) attributes: ...@@ -155,7 +155,7 @@ and (read-only) attributes:
data may not be written data may not be written
---see :meth:`writeall`. ---see :meth:`writeall`.
.. versionchanged: 3.5 .. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. Writable :term:`bytes-like object` is now accepted.
...@@ -169,7 +169,7 @@ and (read-only) attributes: ...@@ -169,7 +169,7 @@ and (read-only) attributes:
no return value, since the amount of data written is always equal to the no return value, since the amount of data written is always equal to the
amount of data supplied. amount of data supplied.
.. versionchanged: 3.5 .. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. Writable :term:`bytes-like object` is now accepted.
......
...@@ -297,7 +297,7 @@ The special characters are: ...@@ -297,7 +297,7 @@ The special characters are:
>>> m.group(0) >>> m.group(0)
'egg' 'egg'
.. versionchanged: 3.5 .. versionchanged:: 3.5
Added support for group references of fixed length. Added support for group references of fixed length.
``(?<!...)`` ``(?<!...)``
......
...@@ -675,7 +675,7 @@ The :mod:`socket` module also offers various network-related services: ...@@ -675,7 +675,7 @@ The :mod:`socket` module also offers various network-related services:
support IPv6, and :func:`inet_ntop` should be used instead for IPv4/v6 dual support IPv6, and :func:`inet_ntop` should be used instead for IPv4/v6 dual
stack support. stack support.
.. versionchanged: 3.5 .. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. Writable :term:`bytes-like object` is now accepted.
...@@ -717,7 +717,7 @@ The :mod:`socket` module also offers various network-related services: ...@@ -717,7 +717,7 @@ The :mod:`socket` module also offers various network-related services:
.. versionchanged:: 3.4 .. versionchanged:: 3.4
Windows support added Windows support added
.. versionchanged: 3.5 .. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. Writable :term:`bytes-like object` is now accepted.
...@@ -1332,7 +1332,7 @@ to sockets. ...@@ -1332,7 +1332,7 @@ to sockets.
ensure that the bytestring contains the proper bits (see the optional built-in ensure that the bytestring contains the proper bits (see the optional built-in
module :mod:`struct` for a way to encode C structures as bytestrings). module :mod:`struct` for a way to encode C structures as bytestrings).
.. versionchanged: 3.5 .. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. Writable :term:`bytes-like object` is now accepted.
......
...@@ -344,7 +344,7 @@ Random generation ...@@ -344,7 +344,7 @@ Random generation
string (so you can always use :const:`0.0`). See :rfc:`1750` for more string (so you can always use :const:`0.0`). See :rfc:`1750` for more
information on sources of entropy. information on sources of entropy.
.. versionchanged: 3.5 .. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. Writable :term:`bytes-like object` is now accepted.
Certificate handling Certificate handling
......
...@@ -1298,16 +1298,16 @@ loops. ...@@ -1298,16 +1298,16 @@ loops.
only represent sequences that follow a strict pattern and repetition and only represent sequences that follow a strict pattern and repetition and
concatenation will usually violate that pattern). concatenation will usually violate that pattern).
.. data: start .. attribute:: start
The value of the *start* parameter (or ``0`` if the parameter was The value of the *start* parameter (or ``0`` if the parameter was
not supplied) not supplied)
.. data: stop .. attribute:: stop
The value of the *stop* parameter The value of the *stop* parameter
.. data: step .. attribute:: step
The value of the *step* parameter (or ``1`` if the parameter was The value of the *step* parameter (or ``1`` if the parameter was
not supplied) not supplied)
......
...@@ -194,7 +194,7 @@ Miscellaneous options ...@@ -194,7 +194,7 @@ Miscellaneous options
:class:`str` or :class:`bytes` with :class:`int`. Issue an error when the :class:`str` or :class:`bytes` with :class:`int`. Issue an error when the
option is given twice (:option:`-bb`). option is given twice (:option:`-bb`).
.. versionchanged: 3.5 .. versionchanged:: 3.5
Affects comparisons of :class:`bytes` with :class:`int`. Affects comparisons of :class:`bytes` with :class:`int`.
.. cmdoption:: -B .. cmdoption:: -B
......
...@@ -471,7 +471,7 @@ class Formatter(object): ...@@ -471,7 +471,7 @@ class Formatter(object):
use one of %-formatting, :meth:`str.format` (``{}``) formatting or use one of %-formatting, :meth:`str.format` (``{}``) formatting or
:class:`string.Template` formatting in your format string. :class:`string.Template` formatting in your format string.
.. versionchanged: 3.2 .. versionchanged:: 3.2
Added the ``style`` parameter. Added the ``style`` parameter.
""" """
if style not in _STYLES: if style not in _STYLES:
...@@ -700,7 +700,7 @@ class Filterer(object): ...@@ -700,7 +700,7 @@ class Filterer(object):
this and the record is then dropped. Returns a zero value if a record this and the record is then dropped. Returns a zero value if a record
is to be dropped, else non-zero. is to be dropped, else non-zero.
.. versionchanged: 3.2 .. versionchanged:: 3.2
Allow filters to be just callables. Allow filters to be just callables.
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment