[GRASS-SVN] r73956 - grass/trunk/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 16 23:51:31 PST 2019
Author: martinl
Date: 2019-01-16 23:51:31 -0800 (Wed, 16 Jan 2019)
New Revision: 73956
Modified:
grass/trunk/lib/python/script/task.py
Log:
attempt to fix grass.task.get_interface python3 issue, see #3731
Modified: grass/trunk/lib/python/script/task.py
===================================================================
--- grass/trunk/lib/python/script/task.py 2019-01-16 18:04:10 UTC (rev 73955)
+++ grass/trunk/lib/python/script/task.py 2019-01-17 07:51:31 UTC (rev 73956)
@@ -472,7 +472,7 @@
:param cmd: command (name of GRASS module)
"""
try:
- p = Popen([cmd, '--interface-description'], stdout=PIPE,
+ p = Popen([encode(cmd), b'--interface-description'], stdout=PIPE,
stderr=PIPE)
cmdout, cmderr = p.communicate()
More information about the grass-commit
mailing list