Import httplib from six to support Python 3

In Python 3, httplib moved to http.client.
Use six in order to import the correct library on both Python 2 and
Python 3.

Change-Id: I6f43faf453809eed3f2e88fd587e941c80204793
Closes-Bug: #1623447
This commit is contained in:
Yuval Brik 2016-11-06 16:12:55 +02:00
parent f694119d39
commit 8aaa668262
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@
from docutils import nodes
from docutils.parsers.rst.directives.tables import Table
from docutils.statemachine import ViewList
from httplib import responses
from six.moves.http_client import responses
import yaml
# cache for file -> yaml so we only do the load and check of a yaml

View File

@ -4,5 +4,6 @@
pbr>=1.6 # Apache-2.0
PyYAML>=3.10.0 # MIT
six>=1.9.0 # MIT
sphinx!=1.3b1,<1.4,>=1.2.1 # BSD
openstackdocstheme>=1.5.0 # Apache-2.0