Opened 6 years ago
Last modified 5 years ago
#3811 new defect
grass.lib.gis.G_getenv returns bytes in Python 3
Reported by: | pmav99 | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.8.3 |
Component: | Python | Version: | svn-trunk |
Keywords: | Cc: | ||
CPU: | Unspecified | Platform: | All |
Description
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
Note:
See TracTickets
for help on using tickets.
In 74383: