Browse Source

comments applied to opposite code block (#4364)

from my reading of the code, these comments were the wrong way round
anentropic 7 years ago
parent
commit
1bb747a627
1 changed files with 2 additions and 2 deletions
  1. 2 2
      celery/app/amqp.py

+ 2 - 2
celery/app/amqp.py

@@ -198,9 +198,9 @@ class Queues(dict):
         if exclude:
             exclude = maybe_list(exclude)
             if self._consume_from is None:
-                # using selection
+                # using all queues
                 return self.select(k for k in self if k not in exclude)
-            # using all queues
+            # using selection
             for queue in exclude:
                 self._consume_from.pop(queue, None)