~tony-badwolf/quickly/templatetools

Viewing all changes in revision 641.

  • Committer: Tony Byrne tony.badwolf@gmail.com
  • Date: 2011-11-19 09:56:04 UTC
  • Revision ID: tony.badwolf@gmail.com-20111119095604-8n39vzrsaxgdm2mt
enhances templatetools.update_file_content
original version forces template writer to write convoluted code

for instance ubuntu-application.package.py contains
    # Prepend the start-match line, because update_file_content replaces it

I needed to remove a try/except block from a template
but this function kept the end marker (\n    pass\n)
the best I could do with original function was to replace it by
try:
    pass
except:
    pass

includes tests

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: