Skip to content

Commit

Permalink
pythongh-101100: Fix Sphinx warnings in Doc/using/configure.rst (pyth…
Browse files Browse the repository at this point in the history
…onGH-109931)

(cherry picked from commit 3538930)

Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
vstinner authored and miss-islington committed Sep 27, 2023
1 parent 88917dd commit 783c8b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion Doc/tools/.nitignore
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ Doc/tutorial/controlflow.rst
Doc/tutorial/datastructures.rst
Doc/tutorial/introduction.rst
Doc/using/cmdline.rst
Doc/using/configure.rst
Doc/using/windows.rst
Doc/whatsnew/2.0.rst
Doc/whatsnew/2.1.rst
Expand Down
16 changes: 8 additions & 8 deletions Doc/using/configure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ General Options

.. cmdoption:: --enable-loadable-sqlite-extensions

Support loadable extensions in the :mod:`_sqlite` extension module (default
is no).
Support loadable extensions in the :mod:`!_sqlite` extension module (default
is no) of the :mod:`sqlite3` module.

See the :meth:`sqlite3.Connection.enable_load_extension` method of the
:mod:`sqlite3` module.
Expand Down Expand Up @@ -117,7 +117,7 @@ General Options
Some Linux distribution packaging policies recommend against bundling
dependencies. For example, Fedora installs wheel packages in the
``/usr/share/python-wheels/`` directory and don't install the
:mod:`ensurepip._bundled` package.
:mod:`!ensurepip._bundled` package.

.. versionadded:: 3.10

Expand Down Expand Up @@ -193,7 +193,7 @@ Install Options
.. cmdoption:: --disable-test-modules

Don't build nor install test modules, like the :mod:`test` package or the
:mod:`_testcapi` extension module (built and installed by default).
:mod:`!_testcapi` extension module (built and installed by default).

.. versionadded:: 3.10

Expand Down Expand Up @@ -292,7 +292,7 @@ Effects of a debug build:
* Display all warnings by default: the list of default warning filters is empty
in the :mod:`warnings` module.
* Add ``d`` to :data:`sys.abiflags`.
* Add :func:`sys.gettotalrefcount` function.
* Add :func:`!sys.gettotalrefcount` function.
* Add :option:`-X showrefcount <-X>` command line option.
* Add :envvar:`PYTHONTHREADDEBUG` environment variable.
* Add support for the ``__lltrace__`` variable: enable low-level tracing in the
Expand All @@ -313,7 +313,7 @@ Effects of a debug build:
* Check that deallocator functions don't change the current exception.
* The garbage collector (:func:`gc.collect` function) runs some basic checks
on objects consistency.
* The :c:macro:`Py_SAFE_DOWNCAST()` macro checks for integer underflow and
* The :c:macro:`!Py_SAFE_DOWNCAST()` macro checks for integer underflow and
overflow when downcasting from wide types to narrow types.

See also the :ref:`Python Development Mode <devmode>` and the
Expand Down Expand Up @@ -341,7 +341,7 @@ Debug options
Effects:

* Define the ``Py_TRACE_REFS`` macro.
* Add :func:`sys.getobjects` function.
* Add :func:`!sys.getobjects` function.
* Add :envvar:`PYTHONDUMPREFS` environment variable.

This build is not ABI compatible with release build (default build) or debug
Expand Down Expand Up @@ -419,7 +419,7 @@ Libraries options

.. cmdoption:: --with-system-expat

Build the :mod:`pyexpat` module using an installed ``expat`` library
Build the :mod:`!pyexpat` module using an installed ``expat`` library
(default is no).

.. cmdoption:: --with-system-ffi
Expand Down

0 comments on commit 783c8b4

Please sign in to comment.