[Tutor] Embedding strings in a python script
Kent Johnson
kent37 at tds.net
Thu Jan 4 12:03:34 CET 2007
Tony Cappellini 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?
Try using \x24 instead of $:
cvs_header='''
#######################################
#
# \x24Header:\x24
#
# \x24Revision:\x24
# \x24Author:\x24
# \x24Date:\x24
#
Kent
More information about the Tutor
mailing list