浏览代码

Make appstr use standard format (#4134) (#4139)

Preston Moore 7 年之前
父节点
当前提交
bccea8de7d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/app/utils.py

+ 1 - 1
celery/app/utils.py

@@ -70,7 +70,7 @@ FMT_REPLACE_SETTING = '{replace:<36} -> {with_}'
 
 def appstr(app):
     """String used in __repr__ etc, to id app instances."""
-    return '{0}:{1:#x}'.format(app.main or '__main__', id(app))
+    return '{0} at {1:#x}'.format(app.main or '__main__', id(app))
 
 
 class Settings(ConfigurationView):