src/reportlab/graphics/renderPS.py
changeset 4551 d357e2acc856
parent 4528 e09377955af8
--- a/src/reportlab/graphics/renderPS.py	Thu Oct 24 15:53:59 2019 +0100
+++ b/src/reportlab/graphics/renderPS.py	Thu Oct 24 16:07:15 2019 +0100
@@ -918,8 +918,9 @@
 
         for funcname in dir(testshapes):
             if funcname[0:10] == 'getDrawing':
-                drawing = eval('testshapes.' + funcname + '()')  #execute it
-                docstring = eval('testshapes.' + funcname + '.__doc__')
+                func = getattr(testshapes,funcname)
+                drawing = func()
+                docstring = getattr(func,'__doc__','')
                 drawings.append((drawing, docstring))
 
         i = 0