[GRASS-SVN] r73796 - grass/trunk/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 12 01:01:38 PST 2018


Author: martinl
Date: 2018-12-12 01:01:38 -0800 (Wed, 12 Dec 2018)
New Revision: 73796

Modified:
   grass/trunk/gui/wxpython/core/gcmd.py
Log:
wxGUI: fix command output handling in Python3

Modified: grass/trunk/gui/wxpython/core/gcmd.py
===================================================================
--- grass/trunk/gui/wxpython/core/gcmd.py	2018-12-11 11:51:18 UTC (rev 73795)
+++ grass/trunk/gui/wxpython/core/gcmd.py	2018-12-12 09:01:38 UTC (rev 73796)
@@ -50,6 +50,7 @@
 from grass.script import core as grass
 from core import globalvar
 from core.debug import Debug
+from grass.script.utils import decode
 
 # cannot import from the core.utils module to avoid cross dependencies
 try:
@@ -342,7 +343,7 @@
             else:
                 break
         elif r:
-            y.append(r)
+            y.append(decode(r))
         else:
             time.sleep(max((x - time.time()) / tr, 0))
     return ''.join(y)



More information about the grass-commit mailing list