~ubuntu-branches/ubuntu/trusty/python-boto/trusty

« back to all changes in this revision

Viewing changes to boto/sqs/batchresults.py

  • Committer: Package Import Robot
  • Author(s): Eric Evans
  • Date: 2013-05-10 23:38:14 UTC
  • mfrom: (1.1.10) (14.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130510233814-701dvlop7xfh88i7
Tags: 2.9.2-1
New upstream release (Closes: #700743).

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        self.errors = []
80
80
 
81
81
    def startElement(self, name, attrs, connection):
82
 
        if name == 'SendMessageBatchResultEntry':
 
82
        if name.endswith('MessageBatchResultEntry'):
83
83
            entry = ResultEntry()
84
84
            self.results.append(entry)
85
85
            return entry
86
86
        if name == 'BatchResultErrorEntry':
87
87
            entry = ResultEntry()
88
 
            self.results.errors(entry)
 
88
            self.errors.append(entry)
89
89
            return entry
90
90
        return None
91
91