浏览代码

libpython: use different formatting notation to avoid problems with unicode, see https://trac.osgeo.org/grass/ticket/3205

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69803 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 8 年之前
父节点
当前提交
54c845c5d4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/python/script/task.py

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

@@ -636,7 +636,7 @@ def cmdtuple_to_list(cmd):
         if k in ('flags', 'help', 'verbose', 'quiet', 'overwrite'):
             continue
         if ' ' in v:
-            v = '"{}"'.format(v)
+            v = '"%s"' % v
         cmdList.append('%s=%s' % (k, v))
 
     return cmdList