diff options
Diffstat (limited to 'machammer/system_profiler.py')
-rw-r--r-- | machammer/system_profiler.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/machammer/system_profiler.py b/machammer/system_profiler.py index 81dfb69..711ba24 100644 --- a/machammer/system_profiler.py +++ b/machammer/system_profiler.py @@ -20,7 +20,9 @@ PROFILER_PATH = '/usr/sbin/system_profiler' class SystemProfile(object): def __init__(self, dt=DEFAULT_DT): types = subprocess.check_output([PROFILER_PATH, '-listDataTypes']).strip() - self.types = [x[2:].replace('DataType', '') for x in types.split("\n") if x.startswith('SP')] + types = types.decode().split("\n") + + self.types = [x[2:].replace('DataType', '') for x in types if x.startswith('SP')] self.types.sort() if dt not in self.types: |