[Python-checkins] python/nondist/peps pep-0008.txt,1.26,1.27
goodger@users.sourceforge.net
goodger at users.sourceforge.net
Sat Aug 20 15:49:00 CEST 2005
Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6037
Modified Files:
pep-0008.txt
Log Message:
fixed raise syntax examples; closing http://python.org/sf/1264666
Index: pep-0008.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0008.txt,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- pep-0008.txt 7 Aug 2005 13:27:54 -0000 1.26
+++ pep-0008.txt 20 Aug 2005 13:48:50 -0000 1.27
@@ -96,10 +96,10 @@
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)
More information about the Python-checkins
mailing list