Ask Solem пре 9 година
родитељ
комит
6a1939bdb1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      celery/datastructures.py

+ 1 - 1
celery/datastructures.py

@@ -717,7 +717,7 @@ class LimitedSet(object):
     def discard(self, item):
     def discard(self, item):
         # mark an existing item as removed. If KeyError is not found, pass.
         # mark an existing item as removed. If KeyError is not found, pass.
         try:
         try:
-            entry = self._data.pop(item)
+            self._data.pop(item)
         except KeyError:
         except KeyError:
             pass
             pass
         else:
         else: