~ubuntu-branches/ubuntu/gutsy/moin/gutsy

« back to all changes in this revision

Viewing changes to MoinMoin/scripts/globaledit.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-14 16:09:24 UTC
  • mfrom: (0.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20060214160924-fyrx3gvknzqvt4vj
Tags: 1.5.2-1ubuntu1
Drop python2.3 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
    if content_lines and content_lines[-1].strip(): # not an empty line at EOF
74
74
        content_lines.append('')
75
75
 
76
 
    if masterpage.endswith('Template'):
 
76
    if masterpage and masterpage.endswith('Template'):
77
77
        changedtext = master_lines + [format_line, language_line,] + pragma_lines + content_lines
78
78
    else:
79
79
        changedtext = comment_lines + master_lines + acl_lines + [format_line, language_line,] + pragma_lines + content_lines