mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
commit
017af4ce2e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user