aboutsummaryrefslogtreecommitdiff
path: root/whatmaps/distro.py
diff options
context:
space:
mode:
Diffstat (limited to 'whatmaps/distro.py')
-rw-r--r--whatmaps/distro.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/whatmaps/distro.py b/whatmaps/distro.py
index 87e264e..d4f991b 100644
--- a/whatmaps/distro.py
+++ b/whatmaps/distro.py
@@ -130,10 +130,10 @@ def detect():
try:
lsb_cmd = subprocess.Popen(['lsb_release', '--id', '-s'],
stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
+ 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