From 821661180d41293b710835c2af6caaeaebb52448 Mon Sep 17 00:00:00 2001 From: Tyler Erickson Date: Sat, 24 Dec 2016 14:48:25 -0800 Subject: [PATCH] Removed iterwalk tag argument. This was preventing iterwalk from acting on the root element. --- src/pykml/util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pykml/util.py b/src/pykml/util.py index ae2c1df..dda16b7 100644 --- a/src/pykml/util.py +++ b/src/pykml/util.py @@ -70,8 +70,7 @@ def ring_coords_to_wkt(ring): ring_wkt_list = [] context = etree.iterwalk( doc, - events=("start",), - tag="{http://www.opengis.net/kml/2.2}*", + events=("start",) ) for action, elem in context: if elem.tag in ['{http://www.opengis.net/kml/2.2}Polygon',