Merge pull request #7577 from tk0miya/7575_doctest_print

doc: Fix examples of doctest extensions are still in py2 (refs: #7575)
This commit is contained in:
Takeshi KOMIYA 2020-05-01 21:03:06 +09:00 committed by GitHub
commit 017af4ce2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.