Skip to content
Snippets Groups Projects
Commit 6ff039b1 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

platform.get_linux_distribution() will break in Python 3.7.


platform.linux_distribution()

Signed-off-by: Chris Lamb's avatarChris Lamb <lamby@debian.org>
parent bb4d562c
No related branches found
No related tags found
No related merge requests found
......@@ -218,6 +218,8 @@ def get_current_os():
import platform
system = platform.system()
if system == "Linux":
# FIXME: Will break under Python 3.7, see:
# https://docs.python.org/3/library/platform.html#platform.linux_distribution
return platform.linux_distribution()[0]
return system
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment