fix avx detection for py3

This commit is contained in:
Siu Kwan Lam 2013-08-01 11:50:36 -05:00
commit 2a25b1c2b3

View file

@ -50,8 +50,7 @@ def detect_osx_like():
stdout=subprocess.PIPE)
except OSError:
return False
features = info.stdout.read()
features = info.stdout.read().decode('UTF8')
features = features.split()
return 'AVX1.0' in features and 'OSXSAVE' in features and 'XSAVE' in features