[Tutor] Embedding strings in a python script

John Fouhy john at fouhy.net
Thu Jan 4 04:13:51 CET 2007


On 04/01/07, Tony Cappellini <cappy2112 at gmail.com> wrote:
> What I'd like to know, is there a way I can embed/endcode the cvs string
> above in the python script, so that when that script is modified and checked
> into cvs, that the cvs header string above will not be modified by cvs?

What about this:

cvs_header='''
#######################################
#
# @Header:@
#
# @Revision:@
# @Author:@
# @Date:@
#
'''.replace('@', '$')

?

-- 
John.


More information about the Tutor mailing list