diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-04-29 22:46:37 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-04-29 22:46:44 +0900 |
| commit | 155cb87452d6f6c7ee8d0e058eddac1bf9328b8b (patch) | |
| tree | 2d60f3a75eea4a25bd4cf2fe39ee4d0e85a78119 /doc/usage/extensions | |
| parent | d59584f4096c75af4a94fb2bf70974039f7af0bb (diff) | |
| download | sphinx-git-155cb87452d6f6c7ee8d0e058eddac1bf9328b8b.tar.gz | |
doc: Fix examples of doctest extensions are still in py2 (refs: #7575)
Diffstat (limited to 'doc/usage/extensions')
| -rw-r--r-- | doc/usage/extensions/doctest.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/usage/extensions/doctest.rst b/doc/usage/extensions/doctest.rst index 62d8577eb..33d6cf016 100644 --- a/doc/usage/extensions/doctest.rst +++ b/doc/usage/extensions/doctest.rst @@ -132,8 +132,8 @@ a comma-separated list of group names. .. testcode:: - 1+1 # this will give no output! - print 2+2 # this will give output + 1+1 # this will give no output! + print(2+2) # this will give output .. testoutput:: @@ -161,7 +161,7 @@ a comma-separated list of group names. .. testcode:: - print 'Output text.' + print('Output text.') .. testoutput:: :hide: @@ -328,7 +328,7 @@ The doctest extension uses the following configuration values: Some documentation text. - >>> print 1 + >>> print(1) 1 Some more documentation text. @@ -344,7 +344,7 @@ The doctest extension uses the following configuration values: .. doctest:: - >>> print 1 + >>> print(1) 1 Some more documentation text. |
