Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Conflicts:
	ebaysdk/.DS_Store
  • Loading branch information
nickspring committed Jan 24, 2015
2 parents 49f4b26 + 19ed80f commit 405a1c1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Binary file removed .DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion ebaysdk/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ def build_request(self, verb, data, verb_attrs):
headers = self.build_request_headers(verb)
headers.update({'User-Agent': UserAgent,
'X-EBAY-SDK-REQUEST-ID': str(self._request_id)})

request = Request(self.method,
url,
data=self.build_request_data(verb, data, verb_attrs),
Expand Down
4 changes: 2 additions & 2 deletions ebaysdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def python_2_unicode_compatible(klass):
"to %s because it doesn't define __str__()." %
klass.__name__)
klass.__unicode__ = klass.__str__
klass.__str__ = lambda self: self.__unicode__().encode('utf-8')
klass.__str__ = lambda self: self.__unicode__().encode('utf-8', 'ignore')
return klass

def get_dom_tree(xml):
Expand All @@ -46,7 +46,7 @@ def attribute_check(root):
def smart_encode(value):
try:
if sys.version_info[0] < 3:
return unicode(value).encode('utf-8')
return unicode(value).encode('utf-8', 'ignore')
else:
return value
#return str(value)
Expand Down

0 comments on commit 405a1c1

Please sign in to comment.