[GRASS-SVN] r49493 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 2 12:22:05 EST 2011


Author: annakrat
Date: 2011-12-02 09:22:05 -0800 (Fri, 02 Dec 2011)
New Revision: 49493

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI: missing import

Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2011-12-02 16:27:20 UTC (rev 49492)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2011-12-02 17:22:05 UTC (rev 49493)
@@ -73,6 +73,11 @@
 import wx.lib.scrolledpanel    as scrolled
 from wx.lib.newevent import NewEvent
 
+try:
+    import xml.etree.ElementTree as etree
+except ImportError:
+    import elementtree.ElementTree as etree # Python <= 2.4
+
 from grass.script import core as grass
 from grass.script import task as gtask
 



More information about the grass-commit mailing list