From: <and...@us...> - 2008-08-13 12:31:59
|
Revision: 8639 http://plplot.svn.sourceforge.net/plplot/?rev=8639&view=rev Author: andrewross Date: 2008-08-13 12:32:08 +0000 (Wed, 13 Aug 2008) Log Message: ----------- Fix python example 23 so that it produces correct results for python 2.5 upwards where an L is appended onto the hex number 0x80000000 to denote that it is a literal long integer. The fix also works with python 2.4, although it is unnecessary in this case. Modified Paths: -------------- trunk/examples/python/xw23.py Modified: trunk/examples/python/xw23.py =================================================================== --- trunk/examples/python/xw23.py 2008-08-13 12:29:59 UTC (rev 8638) +++ trunk/examples/python/xw23.py 2008-08-13 12:32:08 UTC (rev 8639) @@ -267,7 +267,7 @@ plsfont(family_index, style_index, weight_index) string = "Page 13, "+family[family_index]+", "+style[style_index]+", "+weight[weight_index]+": "+"The quick brown fox jumps over the lazy dog" elif(page == 13): - string = "Page 14, "+family[family_index]+", "+style[style_index]+", "+weight[weight_index]+": #<"+hex(fci[i])+">"+"The quick brown fox jumps over the lazy dog" + string = "Page 14, "+family[family_index]+", "+style[style_index]+", "+weight[weight_index]+": #<"+hex(fci[i]).rstrip('L')+">"+"The quick brown fox jumps over the lazy dog" elif(page == 14): string = "Page 15, "+family[family_index]+", "+style[style_index]+", "+weight[weight_index]+": #<"+hex(family_index)+"0>"+"#<"+hex(style_index)+"1>"+"#<"+hex(weight_index)+"2>"+"The quick brown fox jumps over the lazy dog" elif(page == 15): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |