You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by aj...@apache.org on 2004/04/17 00:35:38 UTC

cvs commit: gump/python/gump/svg scale.py

ajack       2004/04/16 15:35:38

  Modified:    python/gump/svg scale.py
  Log:
  Support Python 2.2 (sum is 2.3)
  
  Revision  Changes    Path
  1.4       +4 -1      gump/python/gump/svg/scale.py
  
  Index: scale.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/svg/scale.py,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- scale.py	16 Apr 2004 17:28:42 -0000	1.3
  +++ scale.py	16 Apr 2004 22:35:38 -0000	1.4
  @@ -31,7 +31,10 @@
           self.width=width
           self.height=height
           
  -        self.total=sum(self.vals)
  +        # Python 2.3 only ... self.total=sum(self.vals)
  +        self.total=0
  +        for val in self.vals:
  +            self.total+=val
           
       def generateDiagram(self):
           
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org