Skip to content

Refs #34445 -- Fixed string-casting of non-string lazy objects when value may be bytes. - #16957

Merged
felixxm merged 1 commit into
django:mainfrom
felixxm:refs-34445-lazy-bytes
Jun 8, 2023
Merged

felixxm merged 1 commit into
django:mainfrom
felixxm:refs-34445-lazy-bytes

Conversation

@felixxm

@felixxm felixxm commented Jun 8, 2023

Copy link
Copy Markdown
Member

No description provided.

…alue may be bytes.

If the result type is bytes, then calling bytes() on it does nothing.

If the result type is not bytes, we should not cast to bytes, just
because the return value may be bytes.
@felixxm
felixxm merged commit f5817c2 into django:main Jun 8, 2023
@felixxm
felixxm deleted the refs-34445-lazy-bytes branch June 8, 2023 05:36
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.

2 participants