Skip to content

Commit 1e5a8a4

Browse files
sobolevnhugovk
authored andcommitted
[3.12] pythongh-101100: Fix sphinx warnings in tutorial/appendix.rst (pythonGH-108750)
Co-authored-by: Hugo van Kemenade <[email protected]>. (cherry picked from commit 3047f09) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 8c3793a commit 1e5a8a4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Doc/constraints.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ imagesize<1.5
1111
Jinja2<3.2
1212
packaging<24
1313
# Pygments==2.15.0 breaks CI
14-
Pygments<2.16,!=2.15.0
14+
Pygments>=2.15,<3
1515
requests<3
1616
snowballstemmer<3
1717
sphinxcontrib-applehelp<1.1

Doc/tools/.nitignore

-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ Doc/reference/datamodel.rst
171171
Doc/reference/expressions.rst
172172
Doc/reference/import.rst
173173
Doc/reference/simple_stmts.rst
174-
Doc/tutorial/appendix.rst
175174
Doc/tutorial/classes.rst
176175
Doc/tutorial/controlflow.rst
177176
Doc/tutorial/datastructures.rst

Doc/tutorial/appendix.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ in the script::
101101
The Customization Modules
102102
-------------------------
103103

104-
Python provides two hooks to let you customize it: :mod:`sitecustomize` and
105-
:mod:`usercustomize`. To see how it works, you need first to find the location
104+
Python provides two hooks to let you customize it: :index:`sitecustomize` and
105+
:index:`usercustomize`. To see how it works, you need first to find the location
106106
of your user site-packages directory. Start Python and run this code::
107107

108108
>>> import site
@@ -113,9 +113,9 @@ Now you can create a file named :file:`usercustomize.py` in that directory and
113113
put anything you want in it. It will affect every invocation of Python, unless
114114
it is started with the :option:`-s` option to disable the automatic import.
115115

116-
:mod:`sitecustomize` works in the same way, but is typically created by an
116+
:index:`sitecustomize` works in the same way, but is typically created by an
117117
administrator of the computer in the global site-packages directory, and is
118-
imported before :mod:`usercustomize`. See the documentation of the :mod:`site`
118+
imported before :index:`usercustomize`. See the documentation of the :mod:`site`
119119
module for more details.
120120

121121

Tools/scripts/run_tests.py

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def main(regrtest_args):
2929
args = [sys.executable,
3030
'-u', # Unbuffered stdout and stderr
3131
'-W', 'default', # Warnings set to 'default'
32+
'-W', 'error::DeprecationWarning', # TODO
3233
'-bb', # Warnings about bytes/bytearray
3334
]
3435

0 commit comments

Comments
 (0)