We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c0e383 commit 247ac59Copy full SHA for 247ac59
xero/manager.py
@@ -148,7 +148,8 @@ def _prepare_data_for_save(self, data):
148
else:
149
root_elm = self.dict_to_xml(Element(self.singular), data)
150
151
- return tostring(root_elm)
+ # In python3 this seems to return a bytestring
152
+ return six.u(tostring(root_elm))
153
154
def _parse_api_response(self, response, resource_name):
155
data = json.loads(response.text, object_hook=json_load_object_hook)
0 commit comments