Skip to content

Commit 45cfabb

Browse files
authored
pythongh-101100: Fix sphinx warnings in usage/cmdline.rst (python#110841)
1 parent 9d40ebf commit 45cfabb

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Doc/tools/.nitignore

-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ Doc/reference/import.rst
145145
Doc/reference/simple_stmts.rst
146146
Doc/tutorial/datastructures.rst
147147
Doc/tutorial/introduction.rst
148-
Doc/using/cmdline.rst
149148
Doc/using/windows.rst
150149
Doc/whatsnew/2.0.rst
151150
Doc/whatsnew/2.1.rst

Doc/using/cmdline.rst

+9-8
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
@@ -280,7 +280,7 @@ Miscellaneous options
280280

281281
.. option:: -E
282282

283-
Ignore all :envvar:`PYTHON*` environment variables, e.g.
283+
Ignore all ``PYTHON*`` environment variables, e.g.
284284
:envvar:`PYTHONPATH` and :envvar:`PYTHONHOME`, that might be set.
285285

286286
See also the :option:`-P` and :option:`-I` (isolated) options.
@@ -303,7 +303,7 @@ Miscellaneous options
303303
and :option:`-s` options.
304304

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

@@ -362,7 +362,7 @@ Miscellaneous options
362362
randomization is enabled by default.
363363

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

861861
If this environment variable is set to a non-empty string,
862862
:func:`faulthandler.enable` is called at startup: install a handler for
863-
:const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` and
864-
:const:`SIGILL` signals to dump the Python traceback. This is equivalent to
865-
:option:`-X` ``faulthandler`` option.
863+
:const:`~signal.SIGSEGV`, :const:`~signal.SIGFPE`,
864+
:const:`~signal.SIGABRT`, :const:`~signal.SIGBUS` and
865+
:const:`~signal.SIGILL` signals to dump the Python traceback.
866+
This is equivalent to :option:`-X` ``faulthandler`` option.
866867

867868
.. versionadded:: 3.3
868869

0 commit comments

Comments
 (0)