~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/utilities/xpi_manifest.py

  • Committer: Jeroen Vermeulen
  • Date: 2010-01-06 06:15:11 UTC
  • mto: This revision was merged to the branch mainline in revision 10123.
  • Revision ID: jeroen.vermeulen@canonical.com-20100106061511-u2ydbxearl3es4g9
A leading newline in a manifest is now an error, so fix up breaking tests and add a new one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
        """Initialize: parse `content` as a manifest file."""
133
133
        if content.startswith('\n'):
134
134
            raise TranslationFormatSyntaxError(
135
 
                "Manifest begins with newline.")
 
135
                message="Manifest begins with newline.")
136
136
 
137
137
        locales = []
138
138
        for line in content.splitlines():