Merge pull request #10 from lucetheloop/master

Refactors Deprecated Code to fix Deprecation Warning
This commit is contained in:
i like my anime girls homo 2021-10-03 18:29:35 +01:00 committed by GitHub
commit 78562ec2dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,8 +58,8 @@ def draw_info(flag_name):
host = gethostname() host = gethostname()
row_info = f'{color}\033[1m{user}@{host}{reset}' row_info = f'{color}\033[1m{user}@{host}{reset}'
elif curr_row == 1: elif curr_row == 1:
distribution = distro.linux_distribution() distribution = distro.name()
row_info = f'{row_color}os {reset}{distribution[0] or "N/A"}' row_info = f'{row_color}os {reset}{distribution or "N/A"}'
elif curr_row == 2: elif curr_row == 2:
arch = uname_info.split(' ')[2] arch = uname_info.split(' ')[2]
row_info = f'{row_color}arch {reset}{arch}' row_info = f'{row_color}arch {reset}{arch}'