Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Fix deprecation warning when working with commands#355

Open
zeerayne wants to merge 1 commit into
sdispater:masterfrom
zeerayne:yaml-deprecation-warn-fix
Open

Fix deprecation warning when working with commands#355
zeerayne wants to merge 1 commit into
sdispater:masterfrom
zeerayne:yaml-deprecation-warn-fix

Conversation

@zeerayne
Copy link
Copy Markdown

@zeerayne zeerayne commented Feb 5, 2020

When using commands got warning 'YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.'

Added loader as described in doc. Works perfect, no deprecation warnings.

@ghost
Copy link
Copy Markdown

ghost commented Mar 23, 2020

Should probably be yaml.safe_load() ?

@MikeLP
Copy link
Copy Markdown

MikeLP commented Jun 9, 2020

Common guys. Is it so complicated to apply this only line?
config = yaml.load(fd, Loader=yaml.SafeLoader)

@ghost
Copy link
Copy Markdown

ghost commented Jun 9, 2020

Common guys. Is it so complicated to apply this only line?
config = yaml.load(fd, Loader=yaml.SafeLoader)

project is frozen atm and is being continued over at masonite orm :) @MikeLP

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants