Commit 2e49b361 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Python3 uses next(generator) and not generator.next()

parent 47d9e765
......@@ -930,7 +930,7 @@ class SDL_Scene(QGraphicsScene):
self.refresh()
else:
try:
item = self.search_item.next()
item = next(self.search_item)
item = item.parentItem()
item.select()
self.highlight(item)
......@@ -1542,7 +1542,7 @@ class SDL_Scene(QGraphicsScene):
try:
self.clearSelection()
self.clear_highlight()
item = self.search_item.next()
item = next(self.search_item)
item = item.parentItem()
item.select()
self.highlight(item)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment