From 159ea0c5c69b914946ad6e6999defffaa792bb81 Mon Sep 17 00:00:00 2001 From: Matej Voboril Date: Wed, 17 Jul 2024 23:31:45 -0500 Subject: [PATCH] fix: replace os.uname with platform.uname --- fsociety/passwords/traitor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fsociety/passwords/traitor.py b/fsociety/passwords/traitor.py index 5ad4ed2..3c494e4 100644 --- a/fsociety/passwords/traitor.py +++ b/fsociety/passwords/traitor.py @@ -1,4 +1,5 @@ import os +import platform from shutil import which from fsociety.core.menu import set_readline @@ -13,8 +14,8 @@ def __init__(self): if "nt" in os.name: self.arch = "" # same as if there's nothing matching, but prevents default checking uname, which only works on posix - elif os.uname().machine in arch_map: - self.arch = arch_map.get(os.uname().machine) + elif platform.uname().machine in arch_map: + self.arch = arch_map.get(platform.uname().machine) else: self.arch = "" self.version = "v0.0.14"