[GRASS-SVN] r73310 - grass/trunk/lib/python/ctypes/ctypesgencore/parser

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 10 18:10:20 PDT 2018


Author: annakrat
Date: 2018-09-10 18:10:20 -0700 (Mon, 10 Sep 2018)
New Revision: 73310

Modified:
   grass/trunk/lib/python/ctypes/ctypesgencore/parser/preprocessor.py
Log:
ctypes: no need to decode, should aready be string in Python 3, causes compilation error on Mac

Modified: grass/trunk/lib/python/ctypes/ctypesgencore/parser/preprocessor.py
===================================================================
--- grass/trunk/lib/python/ctypes/ctypesgencore/parser/preprocessor.py	2018-09-09 20:23:53 UTC (rev 73309)
+++ grass/trunk/lib/python/ctypes/ctypesgencore/parser/preprocessor.py	2018-09-11 01:10:20 UTC (rev 73310)
@@ -24,9 +24,7 @@
 from . import yacc
 from .lex import TOKEN
 
-from grass.script.utils import decode
 
-
 # --------------------------------------------------------------------------
 # Lexers
 # --------------------------------------------------------------------------
@@ -173,8 +171,6 @@
                               stdout=subprocess.PIPE,
                               stderr=subprocess.PIPE)
         ppout, pperr = pp.communicate()
-        ppout = decode(ppout)
-        pperr = decode(pperr)
 
         for line in pperr.split("\n"):
             if line:



More information about the grass-commit mailing list