doc: Fix examples of doctest extensions are still in py2 (refs: #7575)

This commit is contained in:
Takeshi KOMIYA committed 2020-04-29 22:46:44 +09:00
1 parent d59584f409
commit 155cb87452
1 file changed
+5 -5
+5 -5
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.