Commit 63f17c88 authored by Mark Florisson's avatar Mark Florisson

Fix python 3 build

parent 381380c9
......@@ -13,7 +13,6 @@ cdef class UtilityCode(UtilityCodeBase):
cdef public dict _cache
cdef public list specialize_list
cdef public object proto_block
cdef public object name
cdef public object file
cpdef put_code(self, output)
......
......@@ -699,9 +699,6 @@ class PyObjectType(PyrexType):
def __repr__(self):
return "<PyObjectType>"
def __eq__(self, other):
return isinstance(other, PyObjectType) and self.name == other.name
def can_coerce_to_pyobject(self, env):
return True
......
......@@ -1234,7 +1234,8 @@ def check_thread_termination(ignore_seen=True):
def subprocess_output(cmd):
try:
return subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()[0]
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
return p.communicate()[0].decode('UTF-8')
except OSError:
return ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment