Commit 6a093d20 authored by Armin Rigo's avatar Armin Rigo

Trivial bug fix: deque == [] is not a good way to check if a deque is empty.

parent c4b771a7
......@@ -259,7 +259,7 @@ class fifo:
return len(self.list)
def is_empty (self):
return self.list == []
return not self.list
def first (self):
return self.list[0]
......
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