From d0eb85cc2c04a4fe6dbcb329f955515bb62d15a0 Mon Sep 17 00:00:00 2001 From: Caleb Pusey Date: Thu, 18 Dec 2014 16:30:34 -0500 Subject: [PATCH] lxml will not parse unicode xml --- ups/worldship_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ups/worldship_api.py b/ups/worldship_api.py index 87eca44..d30b994 100644 --- a/ups/worldship_api.py +++ b/ups/worldship_api.py @@ -180,7 +180,7 @@ def get_xml(cls, *args, **kwargs): open_shipment, xmlns="x-schema:OpenShipments.xdr" ) full_xml = '\n'.join([ - '', + '', etree.tostring(open_shipments, pretty_print=True), ]) return full_xml