summaryrefslogtreecommitdiff
path: root/Doc/tutorial/classes.rst
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-03-08 20:56:52 -0800
committerSenthil Kumaran <senthil@uthcode.com>2012-03-08 20:56:52 -0800
commit56eebeef24f138aa95be9dad92a9bf0d4814bf62 (patch)
treecc8d088674c8269b1fddacfe5f9ef35a2e540f11 /Doc/tutorial/classes.rst
parent0bf03300f66e2d6df06bcc9bd2fd13c814d2007c (diff)
downloadcpython-56eebeef24f138aa95be9dad92a9bf0d4814bf62.tar.gz
Fix closes Issue: 14217 - 3.2 branch
Diffstat (limited to 'Doc/tutorial/classes.rst')
-rw-r--r--Doc/tutorial/classes.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index 68c4e5d886..5ce3669258 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -180,7 +180,10 @@ 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