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.
The http.client module includes a number of constants (
HTTP_PORT,HTTPS_PORT, and integer status codes likeBAD_REQUEST). On Python 2 usingfuture, these are not available fromhttp.client.This appears to be because httplib doesn't include them in
__all__. It looks like they need to be explicitly imported in future'shttp.clientmodule.