Skip to content

Commit

Permalink
Fixes from python linting
Browse files Browse the repository at this point in the history
  • Loading branch information
eemperor committed Aug 5, 2024
1 parent f3ebed8 commit 8adf3c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ash-windows/tools/convert-lgpo-policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ def _convert_secedit(src):
policy["key"] = line.split("=")[0].strip()
policy["vtype"] = REG_CODE_MAP[line.split("=")[1].split(",")[0].strip()]
policy["value"] = (
"".join(line.split("=")[1].split(",")[1:]).strip().strip('"').replace('""','')
"".join(line.split("=")[1].split(",")[1:])
.strip()
.strip('"')
.replace('""', "")
)
if not policy["vtype"].upper() in REG_TYPES:
print(
Expand Down

0 comments on commit 8adf3c9

Please sign in to comment.