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

Commit

Permalink
fix docs again
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Jan 5, 2021
1 parent 6d53ba6 commit f69292e
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
60 changes: 60 additions & 0 deletions debian/patches/0036-fix-docs-for-sphinx-3.2.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
From: Anthony Sottile <asottile@umich.edu>
Date: Mon, 4 Jan 2021 16:43:14 -0800
Subject: fix docs for sphinx<3.2.0

---
Doc/library/doctest.rst | 6 ------
1 file changed, 6 deletions(-)

diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst
index 42ad0c9..e2cf680 100644
--- a/Doc/library/doctest.rst
+++ b/Doc/library/doctest.rst
@@ -722,7 +722,6 @@ example. Use ``+`` to enable the named behavior, or ``-`` to disable it.
For example, this test passes:

.. doctest::
- :no-trim-doctest-flags:

>>> print(list(range(20))) # doctest: +NORMALIZE_WHITESPACE
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
@@ -734,7 +733,6 @@ is on a single line. This test also passes, and also requires a directive to do
so:

.. doctest::
- :no-trim-doctest-flags:

>>> print(list(range(20))) # doctest: +ELLIPSIS
[0, 1, ..., 18, 19]
@@ -743,7 +741,6 @@ Multiple directives can be used on a single physical line, separated by
commas:

.. doctest::
- :no-trim-doctest-flags:

>>> print(list(range(20))) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
[0, 1, ..., 18, 19]
@@ -752,7 +749,6 @@ If multiple directive comments are used for a single example, then they are
combined:

.. doctest::
- :no-trim-doctest-flags:

>>> print(list(range(20))) # doctest: +ELLIPSIS
... # doctest: +NORMALIZE_WHITESPACE
@@ -763,7 +759,6 @@ containing only directives. This can be useful when an example is too long for
a directive to comfortably fit on the same line:

.. doctest::
- :no-trim-doctest-flags:

>>> print(list(range(5)) + list(range(10, 20)) + list(range(30, 40)))
... # doctest: +ELLIPSIS
@@ -821,7 +816,6 @@ Another bad idea is to print things that embed an object address, like
The :const:`ELLIPSIS` directive gives a nice approach for the last example:

.. doctest::
- :no-trim-doctest-flags:

>>> C() # doctest: +ELLIPSIS
<C object at 0x...>
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ argparse-no-shutil.diff
0033-older-sphinx-v2.patch
0035-mark-_setuptools_disclaimer-as-orphan.patch
0036-allow-older-libmpdec.patch
0036-fix-docs-for-sphinx-3.2.0.patch

0 comments on commit f69292e

Please sign in to comment.