From 79aabc0a97c566557f5d3f5cde193d05cec79313 Mon Sep 17 00:00:00 2001 From: arutar <116097611+arutar@users.noreply.github.com> Date: Thu, 9 Nov 2023 19:18:29 +0300 Subject: [PATCH] Add files via upload --- wininfparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wininfparser.py b/wininfparser.py index 8c3ea65..d2ff145 100644 --- a/wininfparser.py +++ b/wininfparser.py @@ -397,7 +397,7 @@ def AddData(self,k,v=None,c=None,fraw=False): self.__EmptyCount=0 if len(self.__KeyList) - 1 != len(self.__ValueList): print("Warning the section [{}]: will be converted to key value type!".format(self.__Name)) - self.__ValueList = ['' for i in range(len(self.__KeyList) - 1 - len(self.__ValueList))] + self.__ValueList += ['' for i in range(len(self.__KeyList) - 1 - len(self.__ValueList))] self.__ValueList.append(v) elif len(self.__ValueList) and v is None: