提交 905feeb1 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix for python3 following gh-1550

上级 15ad6f31
...@@ -26,7 +26,7 @@ import numpy.distutils # TODO: TensorType should handle this ...@@ -26,7 +26,7 @@ import numpy.distutils # TODO: TensorType should handle this
import theano import theano
from theano.compat import PY3, next, decode, decode_iter from theano.compat import PY3, next, decode, decode_iter
from theano.compat.six import StringIO from theano.compat.six import BytesIO, StringIO
from theano.gof.utils import flatten from theano.gof.utils import flatten
from theano.configparser import config from theano.configparser import config
from theano.gof.cc import hash_from_code from theano.gof.cc import hash_from_code
...@@ -1570,7 +1570,7 @@ class GCC_compiler(object): ...@@ -1570,7 +1570,7 @@ class GCC_compiler(object):
if p.returncode != 0: if p.returncode != 0:
return None return None
lines = StringIO(stdout + stderr).readlines() lines = BytesIO(stdout + stderr).readlines()
lines = decode_iter(lines) lines = decode_iter(lines)
if parse: if parse:
selected_lines = [] selected_lines = []
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论