fixed raise syntax examples; closing http://python.org/sf/1264666

This commit is contained in:
David Goodger 2005-08-20 13:48:50 +00:00
parent 9f088f3ce9
commit 7b245bb06d
1 changed files with 2 additions and 2 deletions

View File

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