fixup python35 tox

bilean/api/openstack/versions.py used httplib convert to using
six.moves http_client

https://pythonhosted.org/six/#module-six.moves identified httplib
since six is already part of requirements this is the easiest
approach to making this code python 2 and 3 compatible

Change-Id: Ieb2357fc7c2945b95d9d5d117d6f2ebc8c88d6ae
This commit is contained in:
Jon Schlueter 2017-10-17 23:18:14 -04:00
parent 2f13fc3283
commit 0ce7a9d7f3
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@
Controller that returns information on the bilean API versions
"""
import httplib
import json
from six.moves import http_client
import webob.dec
@ -44,7 +44,7 @@ class Controller(object):
body = json.dumps(dict(versions=version_objs))
response = webob.Response(request=req,
status=httplib.MULTIPLE_CHOICES,
status=http_client.MULTIPLE_CHOICES,
content_type='application/json')
response.body = body