diff options
author | Piotr Bulinski <piotr@bulinski.pl> | 2014-08-01 12:41:23 +0200 |
---|---|---|
committer | Piotr Bulinski <piotr@bulinski.pl> | 2014-08-01 12:41:23 +0200 |
commit | abb6682c1802986db87d4c19e04eecd369624963 (patch) | |
tree | 918585752f4af67216051c93dda12018410cbba1 /boto/mws | |
parent | 07d6424b22783adc2644e55fb0472cf7ceb454b0 (diff) | |
download | boto-abb6682c1802986db87d4c19e04eecd369624963.tar.gz |
use encodebytes instead of encodestring (#2483)
Diffstat (limited to 'boto/mws')
-rw-r--r-- | boto/mws/connection.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/boto/mws/connection.py b/boto/mws/connection.py index 6759d028..01b0b30b 100644 --- a/boto/mws/connection.py +++ b/boto/mws/connection.py @@ -20,7 +20,6 @@ # IN THE SOFTWARE. import xml.sax import hashlib -import base64 import string import collections from boto.connection import AWSQueryConnection @@ -28,7 +27,7 @@ from boto.exception import BotoServerError import boto.mws.exception import boto.mws.response from boto.handler import XmlHandler -from boto.compat import filter, map, six +from boto.compat import filter, map, six, encodebytes __all__ = ['MWSConnection'] @@ -55,7 +54,7 @@ api_version_path = { 'OffAmazonPayments': ('2013-01-01', 'SellerId', '/OffAmazonPayments/2013-01-01'), } -content_md5 = lambda c: base64.encodestring(hashlib.md5(c).digest()).strip() +content_md5 = lambda c: encodebytes(hashlib.md5(c).digest()).strip() decorated_attrs = ('action', 'response', 'section', 'quota', 'restore', 'version') api_call_map = {} |