Переход на UTF8.
[pyrungps.git] / pygpx.py
index fea5e67db3bbca8ec93706925ab9d8949a4e2c8d..469253854e0b70c3dd169f68819c377ecccb2afe 100644 (file)
--- 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":