summaryrefslogtreecommitdiff
path: root/numpy/distutils/lib2def.py
diff options
context:
space:
mode:
authorÅsmund Hjulstad <asmund@hjulstad.com>2015-02-05 12:10:38 +0100
committerÅsmund Hjulstad <asmund@hjulstad.com>2015-02-05 12:10:38 +0100
commitb791dde577e18afe8986ec4a85516019a76f447d (patch)
treee22f8008797857edfe8b5dafffb074a3bfdf837e /numpy/distutils/lib2def.py
parent75eeb75f109c39de8c1cdc475043e7cd3420322b (diff)
downloadnumpy-b791dde577e18afe8986ec4a85516019a76f447d.tar.gz
Return output from nm command as string (and not bytes)
Diffstat (limited to 'numpy/distutils/lib2def.py')
-rw-r--r--numpy/distutils/lib2def.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/lib2def.py b/numpy/distutils/lib2def.py
index 7316547a3..3884ec42a 100644
--- a/numpy/distutils/lib2def.py
+++ b/numpy/distutils/lib2def.py
@@ -69,7 +69,7 @@ nm_output = getnam(nm_cmd = 'nm -Cs py_lib')"""
f = subprocess.Popen(nm_cmd, shell=True, stdout=subprocess.PIPE)
nm_output = f.stdout.read()
f.stdout.close()
- return nm_output
+ return nm_output.decode('ascii')
def parse_nm(nm_output):
"""Returns a tuple of lists: dlist for the list of data