Kaynağa Gözat

ctypes: no need to decode, should aready be string in Python 3, causes compilation error on Mac

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73310 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 6 yıl önce
ebeveyn
işleme
01ab9e8db4

+ 0 - 4
lib/python/ctypes/ctypesgencore/parser/preprocessor.py

@@ -24,8 +24,6 @@ from . import pplexer
 from . import yacc
 from . import yacc
 from .lex import TOKEN
 from .lex import TOKEN
 
 
-from grass.script.utils import decode
-
 
 
 # --------------------------------------------------------------------------
 # --------------------------------------------------------------------------
 # Lexers
 # Lexers
@@ -173,8 +171,6 @@ class PreprocessorParser(object):
                               stdout=subprocess.PIPE,
                               stdout=subprocess.PIPE,
                               stderr=subprocess.PIPE)
                               stderr=subprocess.PIPE)
         ppout, pperr = pp.communicate()
         ppout, pperr = pp.communicate()
-        ppout = decode(ppout)
-        pperr = decode(pperr)
 
 
         for line in pperr.split("\n"):
         for line in pperr.split("\n"):
             if line:
             if line: