NotifyPanel: Rename variable that shadows builtin (#1470)

This commit is contained in:
Erica M. ("Loonatic") 2023-02-25 04:22:47 -06:00 committed by GitHub
parent 316b8e96eb
commit cd0eb27dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,12 +128,12 @@ class NotifyPanel:
topCategory = Notify.ptr().getTopCategory()
return self._getPandaCategories(topCategory)
def _getPandaCategoriesAsList(self, pc, list):
def _getPandaCategoriesAsList(self, pc, catList):
for item in pc:
if isinstance(item, list):
self._getPandaCategoriesAsList(item, list)
self._getPandaCategoriesAsList(item, catList)
else:
list.append(item)
catList.append(item)
def getPandaCategoriesAsList(self):
pc = self.getPandaCategories()