mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 00:08:11 +00:00
Fix platform.linux_distribution() is deprecated. Fixes https://github.com/GNS3/gns3-gui/issues/2578
This commit is contained in:
parent
de5a6ca8c7
commit
eb97ebf311
@ -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],
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user