Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing config_buffer option breaks with PyYAML6 due to extra required parameter #11

Closed
Hawk777 opened this issue Jan 14, 2023 · 1 comment

Comments

@Hawk777
Copy link
Contributor

Hawk777 commented Jan 14, 2023

In PyYAML 6, the pyyaml.load function started requiring a second parameter. zconfig.YAMLConfig.load_config calls that function if the config_buffer parameter is passed, and does not provide one, thus failing with PyYAML 6.

@amimoto
Copy link

amimoto commented Feb 7, 2023

Should be resolved

  • Added regression test
  • Switched to using safe_load rather than pyyaml.load.
  • Published v3.0.20230207

@zaberaki zaberaki closed this as completed Feb 8, 2023
zaberaki added a commit that referenced this issue Aug 3, 2023
Noted by @chead in [Bug 11](#11). `PyYAML` v6.0 requires `yaml.load` to have a second argument. Switched to using `safe_load` to fix the argument issue as well as a potential security issue.
zaberaki added a commit that referenced this issue Aug 3, 2023
* FIX: #11

Noted by @chead in [Bug 11](#11). `PyYAML` v6.0 requires `yaml.load` to have a second argument. Switched to using `safe_load` to fix the argument issue as well as a potential security issue.

* Better log handling and add support for py3.12

* bump version, add changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants