Skip to content

Commit 2d615e1

Browse files
[3.11] gh-101100: Fix sphinx warnings in usage/cmdline.rst (GH-110841) (#110856)
Co-authored-by: Nikita Sobolev <[email protected]>
1 parent d0ef4f8 commit 2d615e1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ Doc/reference/import.rst
149149
Doc/reference/simple_stmts.rst
150150
Doc/tutorial/datastructures.rst
151151
Doc/tutorial/introduction.rst
152-
Doc/using/cmdline.rst
153152
Doc/using/windows.rst
154153
Doc/whatsnew/2.0.rst
155154
Doc/whatsnew/2.1.rst

Doc/using/cmdline.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ source.
103103

104104
:option:`-I` option can be used to run the script in isolated mode where
105105
:data:`sys.path` contains neither the current directory nor the user's
106-
site-packages directory. All :envvar:`PYTHON*` environment variables are
106+
site-packages directory. All ``PYTHON*`` environment variables are
107107
ignored, too.
108108

109109
Many standard library modules contain code that is invoked on their execution
@@ -161,7 +161,7 @@ source.
161161

162162
:option:`-I` option can be used to run the script in isolated mode where
163163
:data:`sys.path` contains neither the script's directory nor the user's
164-
site-packages directory. All :envvar:`PYTHON*` environment variables are
164+
site-packages directory. All ``PYTHON*`` environment variables are
165165
ignored, too.
166166

167167
.. audit-event:: cpython.run_file filename
@@ -277,7 +277,7 @@ Miscellaneous options
277277

278278
.. option:: -E
279279

280-
Ignore all :envvar:`PYTHON*` environment variables, e.g.
280+
Ignore all ``PYTHON*`` environment variables, e.g.
281281
:envvar:`PYTHONPATH` and :envvar:`PYTHONHOME`, that might be set.
282282

283283
See also the :option:`-P` and :option:`-I` (isolated) options.
@@ -300,7 +300,7 @@ Miscellaneous options
300300
and :option:`-s` options.
301301

302302
In isolated mode :data:`sys.path` contains neither the script's directory nor
303-
the user's site-packages directory. All :envvar:`PYTHON*` environment
303+
the user's site-packages directory. All ``PYTHON*`` environment
304304
variables are ignored, too. Further restrictions may be imposed to prevent
305305
the user from injecting malicious code.
306306

@@ -359,7 +359,7 @@ Miscellaneous options
359359
randomization is enabled by default.
360360

361361
On previous versions of Python, this option turns on hash randomization,
362-
so that the :meth:`__hash__` values of str and bytes objects
362+
so that the :meth:`~object.__hash__` values of str and bytes objects
363363
are "salted" with an unpredictable random value. Although they remain
364364
constant within an individual Python process, they are not predictable
365365
between repeated invocations of Python.
@@ -837,9 +837,10 @@ conflict.
837837

838838
If this environment variable is set to a non-empty string,
839839
:func:`faulthandler.enable` is called at startup: install a handler for
840-
:const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` and
841-
:const:`SIGILL` signals to dump the Python traceback. This is equivalent to
842-
:option:`-X` ``faulthandler`` option.
840+
:const:`~signal.SIGSEGV`, :const:`~signal.SIGFPE`,
841+
:const:`~signal.SIGABRT`, :const:`~signal.SIGBUS` and
842+
:const:`~signal.SIGILL` signals to dump the Python traceback.
843+
This is equivalent to :option:`-X` ``faulthandler`` option.
843844

844845
.. versionadded:: 3.3
845846

0 commit comments

Comments
 (0)