fixed raise syntax examples; closing http://python.org/sf/1264666
This commit is contained in:
parent
9f088f3ce9
commit
7b245bb06d
|
@ -96,10 +96,10 @@ Code lay-out
|
|||
if width == 0 and height == 0 and \
|
||||
color == 'red' and emphasis == 'strong' or \
|
||||
highlight > 100:
|
||||
raise ValueError, "sorry, you lose"
|
||||
raise ValueError("sorry, you lose")
|
||||
if width == 0 and height == 0 and (color == 'red' or
|
||||
emphasis is None):
|
||||
raise ValueError, "I don't think so"
|
||||
raise ValueError("I don't think so")
|
||||
Blob.__init__(self, width, height,
|
||||
color, emphasis, highlight)
|
||||
|
||||
|
|
Loading…
Reference in New Issue