[GRASS-SVN] r69804 - grass/branches/releasebranch_7_2/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 13 14:00:24 PST 2016


Author: annakrat
Date: 2016-11-13 14:00:24 -0800 (Sun, 13 Nov 2016)
New Revision: 69804

Modified:
   grass/branches/releasebranch_7_2/lib/python/script/task.py
Log:
libpython: use different formatting notation to avoid problems with unicode, see #3205 (merge from trunk, r69803)

Modified: grass/branches/releasebranch_7_2/lib/python/script/task.py
===================================================================
--- grass/branches/releasebranch_7_2/lib/python/script/task.py	2016-11-13 21:54:27 UTC (rev 69803)
+++ grass/branches/releasebranch_7_2/lib/python/script/task.py	2016-11-13 22:00:24 UTC (rev 69804)
@@ -636,7 +636,7 @@
         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



More information about the grass-commit mailing list