Skip to content
This repository was archived by the owner on Sep 14, 2024. It is now read-only.

Commit f69292e

Browse files
committed
fix docs again
1 parent 6d53ba6 commit f69292e

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
From: Anthony Sottile <[email protected]>
2+
Date: Mon, 4 Jan 2021 16:43:14 -0800
3+
Subject: fix docs for sphinx<3.2.0
4+
5+
---
6+
Doc/library/doctest.rst | 6 ------
7+
1 file changed, 6 deletions(-)
8+
9+
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst
10+
index 42ad0c9..e2cf680 100644
11+
--- a/Doc/library/doctest.rst
12+
+++ b/Doc/library/doctest.rst
13+
@@ -722,7 +722,6 @@ example. Use ``+`` to enable the named behavior, or ``-`` to disable it.
14+
For example, this test passes:
15+
16+
.. doctest::
17+
- :no-trim-doctest-flags:
18+
19+
>>> print(list(range(20))) # doctest: +NORMALIZE_WHITESPACE
20+
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
21+
@@ -734,7 +733,6 @@ is on a single line. This test also passes, and also requires a directive to do
22+
so:
23+
24+
.. doctest::
25+
- :no-trim-doctest-flags:
26+
27+
>>> print(list(range(20))) # doctest: +ELLIPSIS
28+
[0, 1, ..., 18, 19]
29+
@@ -743,7 +741,6 @@ Multiple directives can be used on a single physical line, separated by
30+
commas:
31+
32+
.. doctest::
33+
- :no-trim-doctest-flags:
34+
35+
>>> print(list(range(20))) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
36+
[0, 1, ..., 18, 19]
37+
@@ -752,7 +749,6 @@ If multiple directive comments are used for a single example, then they are
38+
combined:
39+
40+
.. doctest::
41+
- :no-trim-doctest-flags:
42+
43+
>>> print(list(range(20))) # doctest: +ELLIPSIS
44+
... # doctest: +NORMALIZE_WHITESPACE
45+
@@ -763,7 +759,6 @@ containing only directives. This can be useful when an example is too long for
46+
a directive to comfortably fit on the same line:
47+
48+
.. doctest::
49+
- :no-trim-doctest-flags:
50+
51+
>>> print(list(range(5)) + list(range(10, 20)) + list(range(30, 40)))
52+
... # doctest: +ELLIPSIS
53+
@@ -821,7 +816,6 @@ Another bad idea is to print things that embed an object address, like
54+
The :const:`ELLIPSIS` directive gives a nice approach for the last example:
55+
56+
.. doctest::
57+
- :no-trim-doctest-flags:
58+
59+
>>> C() # doctest: +ELLIPSIS
60+
<C object at 0x...>

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ argparse-no-shutil.diff
3333
0033-older-sphinx-v2.patch
3434
0035-mark-_setuptools_disclaimer-as-orphan.patch
3535
0036-allow-older-libmpdec.patch
36+
0036-fix-docs-for-sphinx-3.2.0.patch

0 commit comments

Comments
 (0)