sobjects/cwxmlparser.py
changeset 10758 a34edc1057c0
parent 10756 3eb527ce5f0f
child 11034 75d752e6daf7
--- a/sobjects/cwxmlparser.py	Thu Oct 01 12:33:58 2015 +0200
+++ b/sobjects/cwxmlparser.py	Thu Oct 01 12:34:49 2015 +0200
@@ -206,7 +206,7 @@
         * `rels` is for relations and structured as
            {role: {relation: [(related item, related rels)...]}
         """
-        entity = self.extid2entity(str(item['cwuri']), item['cwtype'],
+        entity = self.extid2entity(item['cwuri'].encode('ascii'), item['cwtype'],
                                    cwsource=item['cwsource'], item=item,
                                    raise_on_error=raise_on_error)
         if entity is None: