~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/hardwaredb/scripts/hwdbsubmissions.py

  • Committer: Abel Deuring
  • Date: 2011-08-31 16:38:48 UTC
  • mto: This revision was merged to the branch mainline in revision 13841.
  • Revision ID: abel.deuring@canonical.com-20110831163848-3jckf0mamemrzkcc
implemented reviewer's comments

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
            self.logger.warning(
161
161
                'Parsing submission %s: %s' % (self.submission_key, message))
162
162
 
163
 
    def fix_frequent_errors(self, submission):
 
163
    def fixFrequentErrors(self, submission):
164
164
        """Fixes for frequent formal errors in the submissions.
165
165
        """
166
166
        # A considerable number of reports for Lucid has ESC characters
174
174
        :return: an `lxml.etree` instance representation of a valid
175
175
            submission or None for invalid submissions.
176
176
        """
177
 
        submission = self.fix_frequent_errors(submission)
 
177
        submission = self.fixFrequentErrors(submission)
178
178
        try:
179
179
            tree = etree.parse(StringIO(submission), parser=self.doc_parser)
180
180
        except SyntaxError, error_value: