Browse Source

NotifyPanel: Rename variable that shadows builtin (#1470)

Erica M. ("Loonatic") 2 years ago
parent
commit
cd0eb27dc7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      direct/src/tkpanels/NotifyPanel.py

+ 3 - 3
direct/src/tkpanels/NotifyPanel.py

@@ -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()