Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Fixing bug with empty keys
  • Loading branch information
arutar authored Sep 26, 2024
1 parent 5b337a5 commit b1a0f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wininfparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ def ParseFile(self,Name,codec=None):
k+=ma.group(0)[:-1]

if ma.group(0)[-1] == "=":
if ma.group(0).rstrip().lstrip() == "=" and k == "":
if ma.group(0).rstrip().lstrip() == "=" and EmptyRE.fullmatch(k) is not None:
print("Error: File [{0}] Line {1} Contains empty key. [skiped]".format(os.path.basename(self.__FileName),lineNumber))
f_error=True
break
Expand Down

0 comments on commit b1a0f3d

Please sign in to comment.