Skip to content

Drop Python 2 variants of the functions _wsgiString and _wsgiStringToBytes #12243

@gudnimg

Description

@gudnimg

Is your feature request related to a problem? Please describe.
I noticed in twisted/web/wsgi.py that there are two definitions of the functions _wsgiString and _wsgiStringToBytes depending on whether str is bytes. Since Python 2 is no longer supported we know str is bytes is never true anymore. I propose the functions be dropped and only the Python 3 variants kept to clean the project up a little bit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions