瀏覽代碼

celery.loaders.default: Only take names that are uppercase from the config module.

Ask Solem 14 年之前
父節點
當前提交
94403fa9e7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/loaders/default.py

+ 1 - 1
celery/loaders/default.py

@@ -23,7 +23,7 @@ DEFAULT_UNCONFIGURED_SETTINGS = {
 
 
 def wanted_module_item(item):
-    return not item.startswith("_")
+    return item[0].isupper() and not item.startswith("_")
 
 
 class Loader(BaseLoader):