Skip to content

Commit

Permalink
Removed iterwalk tag argument.
Browse files Browse the repository at this point in the history
This was preventing iterwalk from acting on the root element.
  • Loading branch information
tylere committed Dec 24, 2016
1 parent 6b38d2c commit 8216611
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pykml/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 8216611

Please sign in to comment.