From 107d338d882d2fc2b192b4a0abc1f69cd2590ceb Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 22 Mar 2021 19:00:25 +0100 Subject: [PATCH] PythonUtil: Remove old next() interface from EnumIter This was just there to support Python 2, which we no longer support. --- direct/src/showbase/PythonUtil.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/direct/src/showbase/PythonUtil.py b/direct/src/showbase/PythonUtil.py index 27be27a613..d8531e5ff6 100644 --- a/direct/src/showbase/PythonUtil.py +++ b/direct/src/showbase/PythonUtil.py @@ -1221,7 +1221,7 @@ def uniqueName(name): class EnumIter: def __init__(self, enum): - self._values = list(enum._stringTable.keys()) + self._values = tuple(enum._stringTable.keys()) self._index = 0 def __iter__(self): return self @@ -1230,7 +1230,6 @@ class EnumIter: raise StopIteration self._index += 1 return self._values[self._index-1] - next = __next__ class Enum: """Pass in list of strings or string of comma-separated strings.