Sophie

Sophie

distrib > Mageia > 8 > armv7hl > by-pkgid > d2a9e634c16fb84cbff4c9e2a8677edc > files > 1

bleachbit-4.1.0-1.mga8.src.rpm

From 99237fd11030545d503dc50ef2949daa208c1390 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jani=20V=C3=A4limaa?= <wally@mageia.org>
Date: Fri, 27 Mar 2020 17:05:52 +0200
Subject: [PATCH] Replace deprecated platform.dist()

---
 bleachbit/Diagnostic.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bleachbit/Diagnostic.py b/bleachbit/Diagnostic.py
index 89a73e2..372d20b 100755
--- a/bleachbit/Diagnostic.py
+++ b/bleachbit/Diagnostic.py
@@ -29,6 +29,7 @@ import locale
 import os
 import platform
 import sys
+import distro
 
 if 'nt' == os.name:
     from win32com.shell import shell
@@ -95,7 +96,7 @@ def diagnostic_info():
                     s += "\nplatform.mac_ver() = %s" % str(
                         platform.mac_ver()[0] + " (" + macosx_dict[key] + ")")
         else:
-            s += "\nplatform.dist() = %s" % str(platform.linux_distribution(full_distribution_name=0))
+            s += "\ndistro.linux_distribution() = %s" % str(distro.linux_distribution(full_distribution_name=0))
 
     if 'nt' == os.name:
         s += "\nplatform.win32_ver[1]() = %s" % platform.win32_ver()[1]
-- 
2.26.0