[GRASS-SVN] r74474 - grass/trunk/lib/python/pygrass/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 8 03:33:44 PDT 2019


Author: martinl
Date: 2019-05-08 03:33:44 -0700 (Wed, 08 May 2019)
New Revision: 74474

Modified:
   grass/trunk/lib/python/pygrass/gis/__init__.py
Log:
fix python3 issue in pygrass.gis.glist

Modified: grass/trunk/lib/python/pygrass/gis/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/gis/__init__.py	2019-05-07 20:00:52 UTC (rev 74473)
+++ grass/trunk/lib/python/pygrass/gis/__init__.py	2019-05-08 10:33:44 UTC (rev 74474)
@@ -362,7 +362,7 @@
         for el in clist:
             el_name = ct.cast(el, ct.c_char_p).value
             if el_name:
-                elist.append(el_name)
+                elist.append(decode(el_name))
             else:
                 if pattern:
                     return fnmatch.filter(elist, pattern)



More information about the grass-commit mailing list