[GRASS-SVN] r69176 - grass/branches/releasebranch_7_2/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Aug 21 06:12:45 PDT 2016
Author: annakrat
Date: 2016-08-21 06:12:45 -0700 (Sun, 21 Aug 2016)
New Revision: 69176
Modified:
grass/branches/releasebranch_7_2/gui/wxpython/core/render.py
Log:
wxGUI: fix encoding in debug message when layer command has non ascii characters (merge from trunk, r69116)
Modified: grass/branches/releasebranch_7_2/gui/wxpython/core/render.py
===================================================================
--- grass/branches/releasebranch_7_2/gui/wxpython/core/render.py 2016-08-21 13:06:59 UTC (rev 69175)
+++ grass/branches/releasebranch_7_2/gui/wxpython/core/render.py 2016-08-21 13:12:45 UTC (rev 69176)
@@ -1258,7 +1258,7 @@
def SetLayers(self, layers):
self.layers = layers
- Debug.msg(5, "Map.SetLayers(): layers=%s" % (layers))
+ Debug.msg(5, "Map.SetLayers(): layers={}".format([EncodeString(layer.GetCmd(string=True)) for layer in layers]))
def ChangeLayer(self, layer, render=False, **kargs):
"""Change map layer properties
More information about the grass-commit
mailing list