Name c -> cls in example.
This commit is contained in:
parent
2b29ab1392
commit
52d3e7e6a5
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue