Grant Edwards <grant.b.edwa...@gmail.com> added the comment:
Yes, passing the mangle_from value to BytesGenerator seems like the safest fix. It's unfortunate that BytesGenerator defaults to doing "the wrong thing" in the absence of a policy argument, but there might be code that depends on it. I've never done a PR before, but I could work on it next week. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45299> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com