Skip to content

Commit

Permalink
Use of 'in' condition instead of several 'or'
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit9126 authored and ezekg committed Nov 10, 2023
1 parent e953085 commit e7878bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machineid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def id(winregistry: bool = True) -> str:
id = None
if platform == 'darwin':
id = __exec__("ioreg -d2 -c IOPlatformExpertDevice | awk -F\\\" '/IOPlatformUUID/{print $(NF-1)}'")
elif platform == 'win32' or platform == 'cygwin' or platform == 'msys':
elif platform in ('win32', 'cygwin', 'msys'):
if winregistry:
id = __reg__(r'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography', 'MachineGuid')
else:
Expand Down

0 comments on commit e7878bd

Please sign in to comment.