aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--whatmaps/distro.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/whatmaps/distro.py b/whatmaps/distro.py
index 02a696c..d4f991b 100644
--- a/whatmaps/distro.py
+++ b/whatmaps/distro.py
@@ -133,7 +133,7 @@ def detect():
stderr=subprocess.DEVNULL)
output = lsb_cmd.communicate()[0]
if not lsb_cmd.returncode:
- id = output.strip()
+ id = output.decode().split('\n')[0].strip()
except OSError:
# id is None in this case
pass