src/reportlab/graphics/renderPS.py
changeset 4551 d357e2acc856
parent 4528 e09377955af8
equal deleted inserted replaced
4550:80dd9e83dad9 4551:d357e2acc856
   916         #grab all drawings from the test module
   916         #grab all drawings from the test module
   917         drawings = []
   917         drawings = []
   918 
   918 
   919         for funcname in dir(testshapes):
   919         for funcname in dir(testshapes):
   920             if funcname[0:10] == 'getDrawing':
   920             if funcname[0:10] == 'getDrawing':
   921                 drawing = eval('testshapes.' + funcname + '()')  #execute it
   921                 func = getattr(testshapes,funcname)
   922                 docstring = eval('testshapes.' + funcname + '.__doc__')
   922                 drawing = func()
       
   923                 docstring = getattr(func,'__doc__','')
   923                 drawings.append((drawing, docstring))
   924                 drawings.append((drawing, docstring))
   924 
   925 
   925         i = 0
   926         i = 0
   926         for (d, docstring) in drawings:
   927         for (d, docstring) in drawings:
   927             filename = outDir + os.sep + 'renderPS_%d.eps'%i
   928             filename = outDir + os.sep + 'renderPS_%d.eps'%i