[GRASS-SVN] r74051 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 31 06:40:52 PST 2019


Author: neteler
Date: 2019-01-31 06:40:52 -0800 (Thu, 31 Jan 2019)
New Revision: 74051

Modified:
   grass/trunk/lib/init/grass.py
Log:
grass.py: decode username if of type bytes (contributed by Carmen Tawalika, https://github.com/GRASS-GIS/grass-ci/pull/3)

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2019-01-30 23:23:27 UTC (rev 74050)
+++ grass/trunk/lib/init/grass.py	2019-01-31 14:40:52 UTC (rev 74051)
@@ -1933,6 +1933,8 @@
                 s = p.stdout.read()
                 p.wait()
                 user = s.strip()
+                if type(user) is bytes:
+                    user = decode(user)
             except:
                 pass
         if not user:



More information about the grass-commit mailing list