Added non zero check for Queue class.

main
Selwin Ong 7 years ago
parent 8244b898fe
commit 801b3b7293

@ -75,6 +75,12 @@ class Queue(object):
def __len__(self): def __len__(self):
return self.count return self.count
def __nonzero__(self):
return True
def __bool__(self):
return True
def __iter__(self): def __iter__(self):
yield self yield self

Loading…
Cancel
Save