瀏覽代碼

wxGUI: do not use str with unicode, relates to https://trac.osgeo.org/grass/ticket/2524 (merge from trunk, https://trac.osgeo.org/grass/changeset/63943)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@64103 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 年之前
父節點
當前提交
ecd703bfd6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/core/utils.py

+ 1 - 1
gui/wxpython/core/utils.py

@@ -198,7 +198,7 @@ def GetValidLayerName(name):
     .. todo::
         Better use directly Ctypes to reuse venerable libgis C fns...
     """
-    retName = str(name).strip()
+    retName = name.strip()
     
     # check if name is fully qualified
     if '@' in retName: