Ask Solem 14 лет назад
Родитель
Сommit
06f48cf882
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      celery/app/__init__.py

+ 3 - 0
celery/app/__init__.py

@@ -130,6 +130,9 @@ class App(base.BaseApp):
             return inner_create_task_cls(**options)(*args)
         return inner_create_task_cls(**options)
 
+    def __repr__(self):
+        return "<Celery: 0x%x>" % (id(self), )
+
     def __reduce__(self):
         # Reduce only pickles the configuration changes,
         # so the default configuration doesn't have to be passed