소스 검색

Cosmetics

Ask Solem 14 년 전
부모
커밋
966ac1cff9
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      celery/bin/celeryctl.py

+ 1 - 2
celery/bin/celeryctl.py

@@ -122,8 +122,7 @@ class list_(Command):
         if what not in topics:
             raise ValueError("%r not in %r" % (what, topics.keys()))
         with self.app.broker_connection() as conn:
-            consumer = self.app.amqp.get_task_consumer(conn)
-            consumer.declare()
+            self.app.amqp.get_task_consumer(conn).declare()
             with conn.channel() as channel:
                 return topics[what](channel)
 list_ = command(list_, "list")