summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/classes.rst
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-03-09 04:54:34 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-03-09 04:54:34 (GMT)
commit74d5657c804701e76e7d15178eb894bae751ea88 (patch)
treedaea58d3043c168efdd19a66297a6a254077362d /Doc/tutorial/classes.rst
parent40c9565bcc42eef2cf72ae23056992227f15cacc (diff)
downloadcpython-74d5657c804701e76e7d15178eb894bae751ea88.zip
cpython-74d5657c804701e76e7d15178eb894bae751ea88.tar.gz
cpython-74d5657c804701e76e7d15178eb894bae751ea88.tar.bz2
Fix closes Issue: 14217 - Appropriate sphinx directive for output. Patch by Tshepang Lekhonkhobe
Diffstat (limited to 'Doc/tutorial/classes.rst')
-rw-r--r--Doc/tutorial/classes.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index 33171cd..b4f09c2 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -180,7 +180,9 @@ binding::
scope_test()
print("In global scope:", spam)
-The output of the example code is::
+The output of the example code is:
+
+.. code-block:: none
After local assignment: test spam
After nonlocal assignment: nonlocal spam