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

Fix various issues in unsafe_proxy #82326

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

mattclay
Copy link
Member

@mattclay mattclay commented Dec 1, 2023

SUMMARY
  • Use str/bytes directly instead of text_type/binary_type
  • Fix AnsibleUnsafeBytes.__str__ implementation
  • Fix AnsibleUnsafeBytes.__format__ return type
  • Remove invalid methods from AnsibleUnsafeBytes (casefold, format, format_map)
  • Use chars instead of bytes to match stdlib naming
  • Remove commented out code
ISSUE TYPE

Bugfix Pull Request

ADDITIONAL INFORMATION

Omitting the changelog since this fixes issues in code that haven't made it into a non-preview release.

- Use str/bytes directly instead of text_type/binary_type
- Fix AnsibleUnsafeBytes.__str__ implementation
- Fix AnsibleUnsafeBytes.__format__ return type
- Remove invalid methods from AnsibleUnsafeBytes (casefold, format, format_map)
- Use `chars` instead of `bytes` to match stdlib naming
- Remove commented out code
@ansibot ansibot added bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. backport This PR does not target the devel branch. labels Dec 1, 2023
@webknjaz
Copy link
Member

webknjaz commented Dec 1, 2023

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nitzmahone nitzmahone merged commit 59aa014 into ansible:stable-2.16 Dec 1, 2023
78 checks passed
nitzmahone pushed a commit to nitzmahone/ansible that referenced this pull request Dec 1, 2023
- Use str/bytes directly instead of text_type/binary_type
- Fix AnsibleUnsafeBytes.__str__ implementation
- Fix AnsibleUnsafeBytes.__format__ return type
- Remove invalid methods from AnsibleUnsafeBytes (casefold, format, format_map)
- Use `chars` instead of `bytes` to match stdlib naming
- Remove commented out code

(cherry picked from commit 59aa014)
nitzmahone pushed a commit to nitzmahone/ansible that referenced this pull request Dec 1, 2023
- Use str/bytes directly instead of text_type/binary_type
- Fix AnsibleUnsafeBytes.__str__ implementation
- Fix AnsibleUnsafeBytes.__format__ return type
- Remove invalid methods from AnsibleUnsafeBytes (casefold, format, format_map)
- Use `chars` instead of `bytes` to match stdlib naming
- Remove commented out code

(cherry picked from commit 59aa014)
sivel pushed a commit that referenced this pull request Dec 4, 2023
- Use str/bytes directly instead of text_type/binary_type
- Fix AnsibleUnsafeBytes.__str__ implementation
- Fix AnsibleUnsafeBytes.__format__ return type
- Remove invalid methods from AnsibleUnsafeBytes (casefold, format, format_map)
- Use `chars` instead of `bytes` to match stdlib naming
- Remove commented out code

(cherry picked from commit 59aa014)

Co-authored-by: Matt Clay <matt@mystile.com>
sivel pushed a commit that referenced this pull request Dec 4, 2023
- Use str/bytes directly instead of text_type/binary_type
- Fix AnsibleUnsafeBytes.__str__ implementation
- Fix AnsibleUnsafeBytes.__format__ return type
- Remove invalid methods from AnsibleUnsafeBytes (casefold, format, format_map)
- Use `chars` instead of `bytes` to match stdlib naming
- Remove commented out code

(cherry picked from commit 59aa014)

Co-authored-by: Matt Clay <matt@mystile.com>
@sivel sivel removed the needs_triage Needs a first human triage before being processed. label Dec 4, 2023
@ansible ansible locked and limited conversation to collaborators Dec 29, 2023
@mattclay mattclay deleted the fixes-2.16 branch March 22, 2024 02:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport This PR does not target the devel branch. bug This issue/PR relates to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants