[GRASS-SVN] r74439 - grass/trunk/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 30 05:02:19 PDT 2019
Author: martinl
Date: 2019-04-30 05:02:19 -0700 (Tue, 30 Apr 2019)
New Revision: 74439
Modified:
grass/trunk/lib/python/script/core.py
Log:
fix python3 issue in grass.script.core.start_command() when debug enabled
Modified: grass/trunk/lib/python/script/core.py
===================================================================
--- grass/trunk/lib/python/script/core.py 2019-04-30 00:18:14 UTC (rev 74438)
+++ grass/trunk/lib/python/script/core.py 2019-04-30 12:02:19 UTC (rev 74439)
@@ -386,9 +386,10 @@
args = make_command(prog, flags, overwrite, quiet, verbose, **options)
if debug_level() > 0:
- sys.stderr.write("D1/%d: %s.start_command(): %s\n" % (debug_level(),
- __name__,
- ' '.join(args)))
+ sys.stderr.write("D1/{}: {}.start_command(): {}\n".format(
+ debug_level(), __name__,
+ ' '.join([decode(arg) for arg in args]))
+ )
sys.stderr.flush()
return Popen(args, **popts)
More information about the grass-commit
mailing list