[GRASS-SVN] r69116 - grass/trunk/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 9 13:59:38 PDT 2016


Author: annakrat
Date: 2016-08-09 13:59:38 -0700 (Tue, 09 Aug 2016)
New Revision: 69116

Modified:
   grass/trunk/gui/wxpython/core/render.py
Log:
wxGUI: fix encoding in debug message when layer command has non ascii characters

Modified: grass/trunk/gui/wxpython/core/render.py
===================================================================
--- grass/trunk/gui/wxpython/core/render.py	2016-08-09 20:16:41 UTC (rev 69115)
+++ grass/trunk/gui/wxpython/core/render.py	2016-08-09 20:59:38 UTC (rev 69116)
@@ -1312,7 +1312,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