From 0f007b058de5bb06405744fd80f6869ca47676c3 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 10 Sep 2019 16:34:45 +0200 Subject: [PATCH] fix style issues --- src/MyPriorityQueue.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/MyPriorityQueue.py b/src/MyPriorityQueue.py index a143c23..2305fad 100644 --- a/src/MyPriorityQueue.py +++ b/src/MyPriorityQueue.py @@ -6,10 +6,15 @@ class MyPriorityQueueItem(object): self.itemWithPriority = itemWithPriority def __lt__(self, other): return self.itemWithPriority.priority < other.itemWithPriority.priority + def __le__(self, other): return self.itemWithPriority.priority <= other.itemWithPriority.priority + def __eq__(self, other): return self.itemWithPriority.priority == other.itemWithPriority.priority + def __ne__(self, other): return self.itemWithPriority.priority != other.itemWithPriority.priority + def __gt__(self, other): return self.itemWithPriority.priority > other.itemWithPriority.priority + def __ge__(self, other): return self.itemWithPriority.priority >= other.itemWithPriority.priority