[GRASS-SVN] r54620 - grass/trunk/gui/wxpython/web_services
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 14 00:28:44 PST 2013
Author: annakrat
Date: 2013-01-14 00:28:43 -0800 (Mon, 14 Jan 2013)
New Revision: 54620
Modified:
grass/trunk/gui/wxpython/web_services/widgets.py
Log:
wxGUI/wms: fix importing ParseError with Python < 2.7
Modified: grass/trunk/gui/wxpython/web_services/widgets.py
===================================================================
--- grass/trunk/gui/wxpython/web_services/widgets.py 2013-01-13 21:05:03 UTC (rev 54619)
+++ grass/trunk/gui/wxpython/web_services/widgets.py 2013-01-14 08:28:43 UTC (rev 54620)
@@ -20,8 +20,11 @@
import sys
import shutil
-from copy import deepcopy
-from xml.etree.ElementTree import ParseError
+from copy import deepcopy
+try:
+ from xml.etree.ElementTree import ParseError
+except ImportError: # < Python 2.7
+ from xml.parsers.expat import ExpatError as ParseError
import wx
import wx.lib.flatnotebook as FN
More information about the grass-commit
mailing list