浏览代码

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 年之前
父节点
当前提交
01ab9e8db4
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      lib/python/ctypes/ctypesgencore/parser/preprocessor.py

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

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