Name c -> cls in example.

This commit is contained in:
Georg Brandl 2011-03-07 08:31:52 +01:00
parent 2b29ab1392
commit 52d3e7e6a5

View file

@ -673,9 +673,9 @@ example, the following code will print B, C, D in that order::
class D(C): class D(C):
pass pass
for c in [B, C, D]: for cls in [B, C, D]:
try: try:
raise c() raise cls()
except D: except D:
print("D") print("D")
except C: except C: