mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-21 21:57:49 +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 aiohttp
|
||||||
import platform
|
import platform
|
||||||
import locale
|
import locale
|
||||||
|
import distro
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import raven
|
import raven
|
||||||
@ -98,7 +99,7 @@ class CrashReport:
|
|||||||
"os:release": platform.release(),
|
"os:release": platform.release(),
|
||||||
"os:win_32": " ".join(platform.win32_ver()),
|
"os:win_32": " ".join(platform.win32_ver()),
|
||||||
"os:mac": "{} {}".format(platform.mac_ver()[0], platform.mac_ver()[2]),
|
"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__,
|
"aiohttp:version": aiohttp.__version__,
|
||||||
"python:version": "{}.{}.{}".format(sys.version_info[0],
|
"python:version": "{}.{}.{}".format(sys.version_info[0],
|
||||||
sys.version_info[1],
|
sys.version_info[1],
|
||||||
|
@ -9,3 +9,4 @@ zipstream>=1.1.4
|
|||||||
typing>=3.5.3.0 # Otherwise yarl fails with python 3.4
|
typing>=3.5.3.0 # Otherwise yarl fails with python 3.4
|
||||||
prompt-toolkit==1.0.15
|
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