src/reportlab/graphics/renderSVG.py
changeset 4551 d357e2acc856
parent 4474 066480f7a206
--- a/src/reportlab/graphics/renderSVG.py	Thu Oct 24 15:53:59 2019 +0100
+++ b/src/reportlab/graphics/renderSVG.py	Thu Oct 24 16:07:15 2019 +0100
@@ -355,7 +355,7 @@
             self.style['stroke-dasharray'] = ', '.join(map(str, ([array, phase])))
         elif isinstance(array,(tuple,list)) and len(array) > 0:
             assert phase >= 0, "phase is a length in user space"
-            self.style['stroke-dasharray'] = ', '.join(map(str, (array+[phase])))
+            self.style['stroke-dasharray'] = ', '.join(map(str, (list(array)+[phase])))
 
     def setStrokeColor(self, color):
         self._strokeColor = color
@@ -933,14 +933,12 @@
     drawings = []
 
     for funcname in dir(testshapes):
-        #if funcname[0:11] == 'getDrawing2':
-        #    print 'hacked to only show drawing 2'
         if funcname[0:10] == 'getDrawing':
-            drawing = eval('testshapes.' + funcname + '()')
-            docstring = eval('testshapes.' + funcname + '.__doc__')
+            func = getattr(testshapes,funcname)
+            drawing = func()
+            docstring = getattr(func,'__doc__','')
             drawings.append((drawing, docstring))
 
-
     i = 0
     for (d, docstring) in drawings:
         filename = os.path.join(outDir,'renderSVG_%d.svg' % i)