We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7a45cc commit d88f4cbCopy full SHA for d88f4cb
1 file changed
keyauth.py
@@ -457,10 +457,9 @@ class others:
457
@staticmethod
458
def get_hwid():
459
if platform.system() != "Windows":
460
- f = open("/etc/machine-id")
461
- hwid = f.read()
462
- f.close()
463
- return hwid
+ with open("/etc/machine-id") as f:
+ hwid = f.read()
+ return hwid
464
465
cmd = subprocess.Popen(
466
"wmic useraccount where name='%username%' get sid", stdout=subprocess.PIPE, shell=True)
0 commit comments