Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Issue #3544 #3885

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
####
boto
####
boto 2.49.0
boto 2.49.1

Released: 11-July-2018
Released: TBD

.. image:: https://travis-ci.org/boto/boto.svg?branch=develop
:target: https://travis-ci.org/boto/boto
Expand Down
2 changes: 1 addition & 1 deletion boto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from boto.compat import urlparse
from boto.exception import InvalidUriError

__version__ = '2.49.0'
__version__ = '2.49.1'
Version = __version__ # for backware compatibility

# http://bugs.python.org/issue7980
Expand Down
4 changes: 3 additions & 1 deletion boto/mws/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
'OffAmazonPayments': ('2013-01-01', 'SellerId',
'/OffAmazonPayments/2013-01-01'),
}
content_md5 = lambda c: encodebytes(hashlib.md5(c).digest()).strip()
content_md5 = lambda c: encodebytes(hashlib.md5(c).digest()).strip().decode('utf-8')
decorated_attrs = ('action', 'response', 'section',
'quota', 'restore', 'version')
api_call_map = {}
Expand Down Expand Up @@ -330,6 +330,8 @@ def _post_request(self, request, params, parser, body='', headers=None):
def _parse_response(self, parser, contenttype, body):
if not contenttype.startswith('text/xml'):
return body
if hasattr(parser, 'GetReportResult'):
return body
handler = XmlHandler(parser, self)
xml.sax.parseString(body, handler)
return parser
Expand Down