Test for create_wrmap now passes.
[philipp/winterrodeln/wrpylib.git] / wrpylib / wrmwmarkup.py
index b25ef636bfb38dd546cbbdd6c12be1052567a4c7..715dbac2fe8307a34a6d82633c6a15f1d3145d7d 100644 (file)
@@ -537,8 +537,7 @@ def create_wrmap(geojson):
         feature_xml.attrib = json_feature['properties']
         del feature_xml.attrib['type']
 
-    print last_json_feature.tag
     if last_json_feature is not None:
         last_json_feature.tail = '\n\n'
-    return xml.etree.ElementTree.tostring(wrmap_xml, encoding='utf-8')
+    return xml.etree.ElementTree.tostring(wrmap_xml, encoding='utf-8').decode('utf-8')