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