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:
parent
2f13fc3283
commit
0ce7a9d7f3
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user