Got rid of += for 1.5.2 compatibility
authorandy_robinson
Sat, 24 Nov 2001 21:27:57 +0000
changeset 1436 25dd615b9b79
parent 1435 4d0f57749e18
child 1437 0b30285fef91
Got rid of += for 1.5.2 compatibility
reportlab/graphics/charts/barcharts.py
--- a/reportlab/graphics/charts/barcharts.py	Fri Nov 23 17:53:30 2001 +0000
+++ b/reportlab/graphics/charts/barcharts.py	Sat Nov 24 21:27:57 2001 +0000
@@ -1,7 +1,7 @@
 #copyright ReportLab Inc. 2000-2001
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/graphics/charts/barcharts.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/reportlab/graphics/charts/barcharts.py,v 1.54 2001/10/12 12:26:36 johnprecedo Exp $
+#$Header: /tmp/reportlab/reportlab/graphics/charts/barcharts.py,v 1.55 2001/11/24 21:27:57 andy_robinson Exp $
 """This module defines a variety of Bar Chart components.
 
 The basic flavors are Side-by-side, available in horizontal and
@@ -151,7 +151,7 @@
 			data = max(map(len,_data))*[0]
 			for d in _data:
 				for i in xrange(len(d)):
-					data[i] += d[i] or 0
+					data[i] = data[i] + (d[i] or 0)
 			data = list(_data) + [data]
 		self._configureData = data
 
@@ -272,7 +272,7 @@
 					if style!='parallel':
 						y = vScale(accum[colNo])
 						if y<baseLine: y = baseLine
-						accum[colNo] += datum
+						accum[colNo] = accum[colNo] + datum
 						datum = accum[colNo]
 					else:
 						y = baseLine