Fix platform.linux_distribution() is deprecated. Fixes https://github.com/GNS3/gns3-gui/issues/2578

This commit is contained in:
grossmj 2018-10-04 16:32:49 +02:00
parent de5a6ca8c7
commit eb97ebf311
2 changed files with 4 additions and 2 deletions

View File

@ -21,6 +21,7 @@ import struct
import aiohttp
import platform
import locale
import distro
try:
import raven
@ -98,7 +99,7 @@ class CrashReport:
"os:release": platform.release(),
"os:win_32": " ".join(platform.win32_ver()),
"os:mac": "{} {}".format(platform.mac_ver()[0], platform.mac_ver()[2]),
"os:linux": " ".join(platform.linux_distribution()),
"os:linux": " ".join(distro.linux_distribution()),
"aiohttp:version": aiohttp.__version__,
"python:version": "{}.{}.{}".format(sys.version_info[0],
sys.version_info[1],

View File

@ -8,4 +8,5 @@ psutil>=3.0.0
zipstream>=1.1.4
typing>=3.5.3.0 # Otherwise yarl fails with python 3.4
prompt-toolkit==1.0.15
async-timeout<3.0.0 # pyup: ignore; 3.0 drops support for python 3.4
async-timeout<3.0.0 # pyup: ignore; 3.0 drops support for python 3.4
distro>=1.3.0