[GRASS-SVN] r73256 - in grass/trunk/gui/wxpython: nviz vdigit

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 4 07:19:00 PDT 2018


Author: annakrat
Date: 2018-09-04 07:19:00 -0700 (Tue, 04 Sep 2018)
New Revision: 73256

Modified:
   grass/trunk/gui/wxpython/nviz/wxnviz.py
   grass/trunk/gui/wxpython/vdigit/wxdigit.py
   grass/trunk/gui/wxpython/vdigit/wxdisplay.py
Log:
wxGUI: define WindowsError for Python 3 on non-Windows platforms

Modified: grass/trunk/gui/wxpython/nviz/wxnviz.py
===================================================================
--- grass/trunk/gui/wxpython/nviz/wxnviz.py	2018-09-04 14:10:10 UTC (rev 73255)
+++ grass/trunk/gui/wxpython/nviz/wxnviz.py	2018-09-04 14:19:00 UTC (rev 73256)
@@ -44,6 +44,10 @@
 from ctypes import *
 
 try:
+    WindowsError
+except NameError:
+    WindowsError = OSError
+try:
     from grass.lib.gis import *
     from grass.lib.raster3d import *
     from grass.lib.vector import *

Modified: grass/trunk/gui/wxpython/vdigit/wxdigit.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/wxdigit.py	2018-09-04 14:10:10 UTC (rev 73255)
+++ grass/trunk/gui/wxpython/vdigit/wxdigit.py	2018-09-04 14:19:00 UTC (rev 73256)
@@ -40,6 +40,10 @@
 from vdigit.wxdisplay import DisplayDriver, GetLastError
 
 try:
+    WindowsError
+except NameError:
+    WindowsError = OSError
+try:
     from grass.lib.gis import *
     from grass.lib.vector import *
     from grass.lib.vedit import *

Modified: grass/trunk/gui/wxpython/vdigit/wxdisplay.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/wxdisplay.py	2018-09-04 14:10:10 UTC (rev 73255)
+++ grass/trunk/gui/wxpython/vdigit/wxdisplay.py	2018-09-04 14:19:00 UTC (rev 73256)
@@ -30,6 +30,10 @@
 from gui_core.wrap import Rect
 
 try:
+    WindowsError
+except NameError:
+    WindowsError = OSError
+try:
     from grass.lib.gis import *
     from grass.lib.vector import *
     from grass.lib.vedit import *



More information about the grass-commit mailing list