summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/classes.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-06 07:42:46 (GMT)
committerGeorg Brandl <georg@python.org>2013-10-06 07:42:46 (GMT)
commita0ec296599183e7a82ee4c0f096d51ae858b6f98 (patch)
tree35eeb3506c19921921942737ac04299b778cc21e /Doc/tutorial/classes.rst
parenta84d473f02bf74e68a9a1a53faceb31b780f1577 (diff)
downloadcpython-a0ec296599183e7a82ee4c0f096d51ae858b6f98.zip
cpython-a0ec296599183e7a82ee4c0f096d51ae858b6f98.tar.gz
cpython-a0ec296599183e7a82ee4c0f096d51ae858b6f98.tar.bz2
Remove newline in method that makes it possible to copy example to the interactive interpreter.
Diffstat (limited to 'Doc/tutorial/classes.rst')
-rw-r--r--Doc/tutorial/classes.rst1
1 files changed, 0 insertions, 1 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index 3283e54..291410a 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -168,7 +168,6 @@ binding::
def do_global():
global spam
spam = "global spam"
-
spam = "test spam"
do_local()
print("After local assignment:", spam)