Skip to content

Commit

Permalink
fix invalid escape warning in registry string
Browse files Browse the repository at this point in the history
- closes #9
  • Loading branch information
benoit9126 authored Nov 10, 2023
1 parent 8150188 commit f9b94a1
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 @@ -67,7 +67,7 @@ def id(winregistry: bool = True) -> str:
id = __exec__("ioreg -d2 -c IOPlatformExpertDevice | awk -F\\\" '/IOPlatformUUID/{print $(NF-1)}'")
elif platform == 'win32' or platform == 'cygwin' or platform == 'msys':
if winregistry:
id = __reg__('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography', 'MachineGuid')
id = __reg__(r'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography', 'MachineGuid')
else:
id = __exec__("powershell.exe -ExecutionPolicy bypass -command (Get-CimInstance -Class Win32_ComputerSystemProduct).UUID")
if not id:
Expand Down

0 comments on commit f9b94a1

Please sign in to comment.