Name c -> cls in example.

This commit is contained in:
Georg Brandl 2011-03-07 08:31:52 +01:00
parent 2b29ab1392
commit 52d3e7e6a5
1 changed files with 2 additions and 2 deletions

View File

@ -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: