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

chore(safeyaml): Remove legacy Python 2 unicode helper #5142

Merged
merged 1 commit into from Apr 9, 2024

Conversation

holmanb
Copy link
Member

@holmanb holmanb commented Apr 3, 2024

Proposed Commit Message

chore(safeyaml): Remove legacy Python 2 unicode helper

PyYAML has built-in unicode support in Python3+.

The original code[1] was added as a helper to add
support for unicode to `yaml.safe_load()`. We
don't need this anymore, and can jettison it and
prefer `yaml.safe_load()`.

[1] a7a9de1a079

Note that the unittests that were added with this helper back in the python2 days still pass.

Rational: custom code that offers nothing over library code is an unnecessary complexity, remove it.

@holmanb holmanb changed the title chore(safeyaml): Remove unicode helper for Python2 chore(safeyaml): Remove legacy Python 2 unicode helper Apr 4, 2024
@CalvoM
Copy link
Contributor

CalvoM commented Apr 5, 2024

Tested with tests and they all passed. I will be testing the package built.

@holmanb
Copy link
Member Author

holmanb commented Apr 8, 2024

Tested with tests and they all passed. I will be testing the package built.

Thanks for the review @CalvoM!

Copy link
Member

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Also...jettison is a great verb 😄

@TheRealFalcon TheRealFalcon merged commit d075d43 into canonical:main Apr 9, 2024
28 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants