Explorar o código

attempt to fix grass.task.get_interface python3 issue, see https://trac.osgeo.org/grass/ticket/3731

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73956 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=6) %!d(string=hai) anos
pai
achega
d7e2cb261f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/python/script/task.py

+ 1 - 1
lib/python/script/task.py

@@ -472,7 +472,7 @@ def get_interface_description(cmd):
     :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()