From 7d7e381897f2eb033027f9d15ace482ebd317700 Mon Sep 17 00:00:00 2001 From: Lucy Date: Mon, 13 Sep 2021 11:16:59 +0100 Subject: [PATCH] Fixes deprecation warning --- pridefetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pridefetch b/pridefetch index fb7c700..b35a0e2 100755 --- a/pridefetch +++ b/pridefetch @@ -58,8 +58,8 @@ def draw_info(flag_name): host = gethostname() row_info = f'{color}\033[1m{user}@{host}{reset}' elif curr_row == 1: - distribution = distro.linux_distribution() - row_info = f'{row_color}os {reset}{distribution[0] or "N/A"}' + distribution = distro.name() + row_info = f'{row_color}os {reset}{distribution or "N/A"}' elif curr_row == 2: arch = uname_info.split(' ')[2] row_info = f'{row_color}arch {reset}{arch}'