Skip to content

Constants missing from http.client on Python 2 #137

Description

@samh

The http.client module includes a number of constants (HTTP_PORT, HTTPS_PORT, and integer status codes like BAD_REQUEST). On Python 2 using future, these are not available from http.client.

This appears to be because httplib doesn't include them in __all__. It looks like they need to be explicitly imported in future's http.client module.

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