diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/msg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py index 6f17b6acc7..291b38ff7f 100644 --- a/bitbake/lib/bb/msg.py +++ b/bitbake/lib/bb/msg.py | |||
@@ -278,7 +278,7 @@ def setLoggingConfig(defaultconfig, userconfigfile=None): | |||
278 | with open(os.path.normpath(userconfigfile), 'r') as f: | 278 | with open(os.path.normpath(userconfigfile), 'r') as f: |
279 | if userconfigfile.endswith('.yml') or userconfigfile.endswith('.yaml'): | 279 | if userconfigfile.endswith('.yml') or userconfigfile.endswith('.yaml'): |
280 | import yaml | 280 | import yaml |
281 | userconfig = yaml.load(f) | 281 | userconfig = yaml.safe_load(f) |
282 | elif userconfigfile.endswith('.json') or userconfigfile.endswith('.cfg'): | 282 | elif userconfigfile.endswith('.json') or userconfigfile.endswith('.cfg'): |
283 | import json | 283 | import json |
284 | userconfig = json.load(f) | 284 | userconfig = json.load(f) |