{"action":"opened","issue":{"url":"https://api.github.com/repos/celery/celery/issues/3652","repository_url":"https://api.github.com/repos/celery/celery","labels_url":"https://api.github.com/repos/celery/celery/issues/3652/labels{/name}","comments_url":"https://api.github.com/repos/celery/celery/issues/3652/comments","events_url":"https://api.github.com/repos/celery/celery/issues/3652/events","html_url":"https://github.com/celery/celery/issues/3652","id":193563402,"number":3652,"title":"app.conf.humanize(with_defaults=False) produces empty results","user":{"login":"ecerulm","id":58676,"avatar_url":"https://avatars.githubusercontent.com/u/58676?v=3","gravatar_id":"","url":"https://api.github.com/users/ecerulm","html_url":"https://github.com/ecerulm","followers_url":"https://api.github.com/users/ecerulm/followers","following_url":"https://api.github.com/users/ecerulm/following{/other_user}","gists_url":"https://api.github.com/users/ecerulm/gists{/gist_id}","starred_url":"https://api.github.com/users/ecerulm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecerulm/subscriptions","organizations_url":"https://api.github.com/users/ecerulm/orgs","repos_url":"https://api.github.com/users/ecerulm/repos","events_url":"https://api.github.com/users/ecerulm/events{/privacy}","received_events_url":"https://api.github.com/users/ecerulm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-05T17:40:40Z","updated_at":"2016-12-05T17:40:40Z","closed_at":null,"body":"```\r\nsoftware -> celery:4.0.0 (latentcall) kombu:4.0.0 py:2.7.12\r\n            billiard:3.5.0.2 py-amqp:2.1.1\r\nplatform -> system:Linux arch:64bit, ELF imp:CPython\r\nloader   -> celery.loaders.default.Loader\r\nsettings -> transport:amqp results:disabled\r\n\r\nimports:\r\n    ('tasks',)\r\nworker_redirect_stdouts_level: 'INFO'\r\n```\r\n\r\n## Steps to reproduce\r\n```\r\nfrom celery import Celery\r\napp = Celery()\r\napp.config_from_object('myconfig') \r\nprint app.conf.humanize(with_defaults=False) # empty\r\n```\r\n## Expected behavior\r\nIt should print the items in the \"myconfig\"  module. \r\n## Actual behavior\r\nIt prints empty string. \r\nIf the app.conf is \"read\" prior to call humanize() **then it works**. \r\n```\r\nfrom celery import Celery\r\napp = Celery()\r\napp.config_from_object('myconfig') \r\nprint app.conf['worker_redirect_stdouts_level'] # DEBUG\r\nprint app.conf.humanize(with_defaults=False) # u\"imports: \\n    ('tasks',)\\nworker_redirect_stdouts_level:  'DEBUG'\"\r\n```\r\nI guess that `humanize()` should show the same output regardless if `app.conf.__getitem__` has been called or not... \r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"ecerulm"}}