فهرست منبع

do not use str with unicode, relates to https://trac.osgeo.org/grass/ticket/2524

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63943 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 سال پیش
والد
کامیت
904ac98576
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::
     .. todo::
         Better use directly Ctypes to reuse venerable libgis C fns...
         Better use directly Ctypes to reuse venerable libgis C fns...
     """
     """
-    retName = str(name).strip()
+    retName = name.strip()
     
     
     # check if name is fully qualified
     # check if name is fully qualified
     if '@' in retName:
     if '@' in retName: