diff options
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 |
commit | b791dde577e18afe8986ec4a85516019a76f447d (patch) | |
tree | e22f8008797857edfe8b5dafffb074a3bfdf837e /numpy/distutils/lib2def.py | |
parent | 75eeb75f109c39de8c1cdc475043e7cd3420322b (diff) | |
download | numpy-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.py | 2 |
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 |