Browse Source

fix python3 issue in pygrass.gis.glist

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74474 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 6 years ago
parent
commit
72c927442e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/python/pygrass/gis/__init__.py

+ 1 - 1
lib/python/pygrass/gis/__init__.py

@@ -362,7 +362,7 @@ class Mapset(object):
         for el in clist:
         for el in clist:
             el_name = ct.cast(el, ct.c_char_p).value
             el_name = ct.cast(el, ct.c_char_p).value
             if el_name:
             if el_name:
-                elist.append(el_name)
+                elist.append(decode(el_name))
             else:
             else:
                 if pattern:
                 if pattern:
                     return fnmatch.filter(elist, pattern)
                     return fnmatch.filter(elist, pattern)