src/reportlab/pdfgen/pycanvas.py
changeset 2967 ea62529bd1df
parent 2966 c9df63ccabdf
child 3032 22224b1b4d24
equal deleted inserted replaced
2966:c9df63ccabdf 2967:ea62529bd1df
    23 you can run again... ad nauseam ! If the regenerate parameter is
    23 you can run again... ad nauseam ! If the regenerate parameter is
    24 unset or not used at all (it then defaults to being unset) then None
    24 unset or not used at all (it then defaults to being unset) then None
    25 is returned and the doIt() function is much much faster, it is also
    25 is returned and the doIt() function is much much faster, it is also
    26 much faster than the original non-serialized program.
    26 much faster than the original non-serialized program.
    27 
    27 
    28 the reportlab/test/test_pdfgen_pycanvas.py program is the test suite
    28 the tests/test_pdfgen_pycanvas.py program is the test suite
    29 for pycanvas, you can do the following to run it :
    29 for pycanvas, you can do the following to run it :
    30 
    30 
    31     First set verbose=1 in reportlab/rl_config.py
    31     First set verbose=1 in reportlab/rl_config.py
    32 
    32 
    33     then from the command interpreter :
    33     then from the command interpreter :
    34 
    34 
    35     $ cd reportlab/test
    35     $ cd tests
    36     $ python test_pdfgen_pycanvas.py >n1.py
    36     $ python test_pdfgen_pycanvas.py >n1.py
    37 
    37 
    38     this will produce both n1.py and test_pdfgen_pycanvas.pdf
    38     this will produce both n1.py and test_pdfgen_pycanvas.pdf
    39 
    39 
    40     then :
    40     then :
   304     def _PyWrite(self, pycode) :
   304     def _PyWrite(self, pycode) :
   305         """Outputs the source code with a trailing newline."""
   305         """Outputs the source code with a trailing newline."""
   306         self._pyfile.write("%s\n" % pycode)
   306         self._pyfile.write("%s\n" % pycode)
   307 
   307 
   308 if __name__ == '__main__':
   308 if __name__ == '__main__':
   309     print 'For test scripts, look in reportlab/test'
   309     print 'For test scripts, look in tests'