diff --git a/wininfparser.py b/wininfparser.py index cd8094d..428d811 100644 --- a/wininfparser.py +++ b/wininfparser.py @@ -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