Commit e6fe3551 authored by Guillaume Seguin's avatar Guillaume Seguin

Cleanup (replace a for loop & list copy by a simple pop)

parent faeb14f1
......@@ -376,9 +376,8 @@ class printcore():
self.resendfrom += 1
return
self.resendfrom = -1
for i in self.priqueue[:]:
self._send(i)
del self.priqueue[0]
if self.priqueue:
self._send(self.priqueue.pop(0))
return
if self.printing and self.queueindex < len(self.mainqueue):
tline = self.mainqueue[self.queueindex]
......
Markdown is supported
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