summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/classes.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-03-07 07:31:52 (GMT)
committerGeorg Brandl <georg@python.org>2011-03-07 07:31:52 (GMT)
commit52d3e7e6a59954bd375369843dabdea23bb1dfd3 (patch)
tree79c1714716ff86b1f8109e5040f7fde890662d47 /Doc/tutorial/classes.rst
parent2b29ab1392a826baeaa9aab0deb47370db365524 (diff)
downloadcpython-52d3e7e6a59954bd375369843dabdea23bb1dfd3.zip
cpython-52d3e7e6a59954bd375369843dabdea23bb1dfd3.tar.gz
cpython-52d3e7e6a59954bd375369843dabdea23bb1dfd3.tar.bz2
Name c -> cls in example.
Diffstat (limited to 'Doc/tutorial/classes.rst')
-rw-r--r--Doc/tutorial/classes.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index 576ef3a..a0f2431 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -673,9 +673,9 @@ example, the following code will print B, C, D in that order::
class D(C):
pass
- for c in [B, C, D]:
+ for cls in [B, C, D]:
try:
- raise c()
+ raise cls()
except D:
print("D")
except C: