From caf81776c5abaf5ea42f4c43598679a22b417862 Mon Sep 17 00:00:00 2001 From: Zac the Wise <75515581+TechWiz-3@users.noreply.github.com> Date: Wed, 29 Jun 2022 23:54:00 +1000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=91=8C=20IMPROVE:=20usage=20code=20bl?= =?UTF-8?q?ock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit remove `distro.linux_distribution()` since it has been depreciated --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e22ed1ee..3f1d1c0a 100644 --- a/README.md +++ b/README.md @@ -75,8 +75,10 @@ $ distro -j $ python >>> import distro ->>> distro.linux_distribution(full_distribution_name=False) -('centos', '7.1.1503', 'Core') +>>> distro.name(pretty=True) +'CentOS Linux 8' +>>> distro.version(best=True) +'8.4.2105' ``` From ba03a23ac62ad598f963ebf8398b5927ebe7a51e Mon Sep 17 00:00:00 2001 From: TechWiz-3 Date: Tue, 19 Jul 2022 15:08:04 +1000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=91=8C=20IMPROVE:=20add=20distro.id?= =?UTF-8?q?=20demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3f1d1c0a..de6f3c79 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,8 @@ $ python >>> import distro >>> distro.name(pretty=True) 'CentOS Linux 8' +>>> distro.id() +'centos' >>> distro.version(best=True) '8.4.2105' ```