[GRASS-dev] [GRASS GIS] #3811: grass.lib.gis.G_getenv returns bytes in Python 3
GRASS GIS
trac at osgeo.org
Mon Apr 15 08:51:36 PDT 2019
#3811: grass.lib.gis.G_getenv returns bytes in Python 3
--------------------+-------------------------
Reporter: pmav99 | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.8.0
Component: Python | Version: svn-trunk
Keywords: | CPU: Unspecified
Platform: All |
--------------------+-------------------------
{{{grass.lib.gis.G_getenv}}} returns bytes in Python 3. Consequently code
that expects the return value to be {{{str}}} is failing. E.g.
https://grass.osgeo.org/grass77/manuals/libpython/_modules/pygrass/gis.html#Mapset.is_current
(btw, there are no tests for {{{is_current}}}).
There are tests for {{{G_getenv}}}, but they are also failing:
{{{lib/gis/testsuite/gis_lib_env_test.py}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3811>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list