Skip to content

Commit 97ba23b

Browse files
committed
minor performance enhancement to ItemList.visit
1 parent b1736c4 commit 97ba23b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/robot/model/itemlist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def clear(self):
6565
self._items = ()
6666

6767
def visit(self, visitor):
68-
for item in self:
68+
for item in self._items:
6969
item.visit(visitor)
7070

7171
def __iter__(self):

0 commit comments

Comments
 (0)