aboutsummaryrefslogtreecommitdiff
path: root/whatmaps/systemd.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-02-24 09:18:59 +0100
committerGuido Günther <agx@sigxcpu.org>2016-02-24 20:00:48 +0100
commit7e838a0c18f3ad0f574e3bd7c5c4949701264f01 (patch)
tree75494e2477ade0ee3085ad3c86b3c94ecfd97e14 /whatmaps/systemd.py
parent1b59d859f2442dd859fa255a50d3d149c5320213 (diff)
The usual 2to3 string encoding madness
Diffstat (limited to 'whatmaps/systemd.py')
-rw-r--r--whatmaps/systemd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/whatmaps/systemd.py b/whatmaps/systemd.py
index ef15a26..9bc03b1 100644
--- a/whatmaps/systemd.py
+++ b/whatmaps/systemd.py
@@ -38,7 +38,7 @@ class Systemd(object):
if systemctl_status.returncode:
return None
else:
- parts = output.split()
+ parts = output.decode('utf-8').split()
if parts[0].endswith('.service'):
return parts[0]
elif parts[1].endswith('.service'):