Skip to content

Commit

Permalink
fix: replace os.uname with platform.uname
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno authored and thehappydinoa committed Jul 18, 2024
1 parent 466549b commit 159ea0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fsociety/passwords/traitor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import platform
from shutil import which

from fsociety.core.menu import set_readline
Expand All @@ -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"
Expand Down

0 comments on commit 159ea0c

Please sign in to comment.