X-Git-Url: https://git.rvb.name/pyrungps.git/blobdiff_plain/50682c1f7ad6f88896b241d11ab47b57c49364d2..efbf2acd157a4b92e2de85da4879ec7b34af18d8:/pygpx.py diff --git a/pygpx.py b/pygpx.py index fea5e67..4692538 100644 --- a/pygpx.py +++ b/pygpx.py @@ -410,8 +410,7 @@ class GPX: def ReadTree(self,tree): # Загрузка из дерева etree.# - gpx_doc = tree; - root = gpx_doc.getroot() + root = tree # Test if this is a GPX file or not and if it's version 1.1 if root.tag == "{http://www.topografix.com/GPX/1/1}gpx" and root.get("version") == "1.1":