[GRASS-SVN] r74401 - grass/trunk/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 18 13:56:20 PDT 2019
Author: martinl
Date: 2019-04-18 13:56:20 -0700 (Thu, 18 Apr 2019)
New Revision: 74401
Modified:
grass/trunk/gui/wxpython/core/gcmd.py
Log:
vector digitizer crashes with python 3, see #3777
Modified: grass/trunk/gui/wxpython/core/gcmd.py
===================================================================
--- grass/trunk/gui/wxpython/core/gcmd.py 2019-04-18 19:29:30 UTC (rev 74400)
+++ grass/trunk/gui/wxpython/core/gcmd.py 2019-04-18 20:56:20 UTC (rev 74401)
@@ -51,9 +51,8 @@
from core.globalvar import SCT_EXT
from grass.script import core as grass
-from grass.script.utils import decode
+from grass.script.utils import decode, encode
-
if sys.version_info.major == 2:
bytes = str
@@ -716,7 +715,7 @@
ps = grass.start_command(prog, flags, overwrite, quiet, verbose, **kwargs)
if stdin:
- ps.stdin.write(stdin)
+ ps.stdin.write(encode(stdin))
ps.stdin.close()
ps.stdin = None
More information about the grass-commit
mailing list