From 7e838a0c18f3ad0f574e3bd7c5c4949701264f01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Wed, 24 Feb 2016 09:18:59 +0100 Subject: The usual 2to3 string encoding madness --- whatmaps/pkg.py | 2 +- whatmaps/systemd.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'whatmaps') diff --git a/whatmaps/pkg.py b/whatmaps/pkg.py index ab9088d..4290d0b 100644 --- a/whatmaps/pkg.py +++ b/whatmaps/pkg.py @@ -63,7 +63,7 @@ class Pkg(object): output = list_contents.communicate()[0] if list_contents.returncode: raise PkgError("Failed to list package contents for '%s'" % self.name) - self._contents = output.split('\n') + self._contents = output.decode('utf-8').split('\n') return self._contents @property 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'): -- cgit v1.2.1