Skip to content

Commit 984d928

Browse files
AA-Turnerhugovk
andauthored
GH-101100: Resolve reference warnings in whatsnew/2.7.rst (#138415)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 88665de commit 984d928

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

Doc/library/shutil.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ Directory and files operations
9090
copy the file more efficiently. See
9191
:ref:`shutil-platform-dependent-efficient-copy-operations` section.
9292

93+
.. exception:: SpecialFileError
94+
95+
This exception is raised when :func:`copyfile` or :func:`copytree` attempt
96+
to copy a named pipe.
97+
98+
.. versionadded:: 2.7
99+
93100
.. exception:: SameFileError
94101

95102
This exception is raised if source and destination in :func:`copyfile`

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ Doc/using/windows.rst
6161
Doc/whatsnew/2.4.rst
6262
Doc/whatsnew/2.5.rst
6363
Doc/whatsnew/2.6.rst
64-
Doc/whatsnew/2.7.rst
6564
Doc/whatsnew/3.4.rst
6665
Doc/whatsnew/3.5.rst
6766
Doc/whatsnew/3.6.rst

Doc/whatsnew/2.7.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ changes, or look through the Subversion logs for all the details.
15411541
buffer API, which fixed a test suite failure (fix by Antoine Pitrou;
15421542
:issue:`7133`) and automatically set
15431543
OpenSSL's :c:macro:`!SSL_MODE_AUTO_RETRY`, which will prevent an error
1544-
code being returned from :meth:`recv` operations that trigger an SSL
1544+
code being returned from :meth:`!recv` operations that trigger an SSL
15451545
renegotiation (fix by Antoine Pitrou; :issue:`8222`).
15461546

15471547
The :func:`~ssl.SSLContext.wrap_socket` constructor function now takes a
@@ -2031,7 +2031,7 @@ version 1.3. Some of the new features are:
20312031
* ElementTree's code for converting trees to a string has been
20322032
significantly reworked, making it roughly twice as fast in many
20332033
cases. The :meth:`ElementTree.write() <xml.etree.ElementTree.ElementTree.write>`
2034-
and :meth:`Element.write` methods now have a *method* parameter that can be
2034+
and :meth:`!Element.write` methods now have a *method* parameter that can be
20352035
"xml" (the default), "html", or "text". HTML mode will output empty
20362036
elements as ``<empty></empty>`` instead of ``<empty/>``, and text
20372037
mode will skip over elements and only output the text chunks. If
@@ -2044,7 +2044,7 @@ version 1.3. Some of the new features are:
20442044
Namespace handling has also been improved. All ``xmlns:<whatever>``
20452045
declarations are now output on the root element, not scattered throughout
20462046
the resulting XML. You can set the default namespace for a tree
2047-
by setting the :attr:`default_namespace` attribute and can
2047+
by setting the :attr:`!default_namespace` attribute and can
20482048
register new prefixes with :meth:`~xml.etree.ElementTree.register_namespace`. In XML mode,
20492049
you can use the true/false *xml_declaration* parameter to suppress the
20502050
XML declaration.
@@ -2181,14 +2181,14 @@ Changes to Python's build process and to the C API include:
21812181
discussed in :issue:`5753`, and fixed by Antoine Pitrou.
21822182

21832183
* New macros: the Python header files now define the following macros:
2184-
:c:macro:`Py_ISALNUM`,
2185-
:c:macro:`Py_ISALPHA`,
2186-
:c:macro:`Py_ISDIGIT`,
2187-
:c:macro:`Py_ISLOWER`,
2188-
:c:macro:`Py_ISSPACE`,
2189-
:c:macro:`Py_ISUPPER`,
2190-
:c:macro:`Py_ISXDIGIT`,
2191-
:c:macro:`Py_TOLOWER`, and :c:macro:`Py_TOUPPER`.
2184+
:c:macro:`!Py_ISALNUM`,
2185+
:c:macro:`!Py_ISALPHA`,
2186+
:c:macro:`!Py_ISDIGIT`,
2187+
:c:macro:`!Py_ISLOWER`,
2188+
:c:macro:`!Py_ISSPACE`,
2189+
:c:macro:`!Py_ISUPPER`,
2190+
:c:macro:`!Py_ISXDIGIT`,
2191+
:c:macro:`!Py_TOLOWER`, and :c:macro:`!Py_TOUPPER`.
21922192
All of these functions are analogous to the C
21932193
standard macros for classifying characters, but ignore the current
21942194
locale setting, because in
@@ -2234,7 +2234,7 @@ Changes to Python's build process and to the C API include:
22342234

22352235
* When using the :c:type:`PyMemberDef` structure to define attributes
22362236
of a type, Python will no longer let you try to delete or set a
2237-
:c:macro:`T_STRING_INPLACE` attribute.
2237+
:c:macro:`!T_STRING_INPLACE` attribute.
22382238

22392239
.. rev 79644
22402240
@@ -2259,12 +2259,12 @@ Changes to Python's build process and to the C API include:
22592259
:issue:`6491`.)
22602260

22612261
* The :program:`configure` script now checks for floating-point rounding bugs
2262-
on certain 32-bit Intel chips and defines a :c:macro:`X87_DOUBLE_ROUNDING`
2262+
on certain 32-bit Intel chips and defines a :c:macro:`!X87_DOUBLE_ROUNDING`
22632263
preprocessor definition. No code currently uses this definition,
22642264
but it's available if anyone wishes to use it.
22652265
(Added by Mark Dickinson; :issue:`2937`.)
22662266

2267-
:program:`configure` also now sets a :envvar:`LDCXXSHARED` Makefile
2267+
:program:`configure` also now sets a :envvar:`!LDCXXSHARED` Makefile
22682268
variable for supporting C++ linking. (Contributed by Arfrever
22692269
Frehtes Taifersar Arahesis; :issue:`1222585`.)
22702270

0 commit comments

Comments
 (0)