From 0ce7a9d7f341a8b09c38ea771ad544dd1c26d478 Mon Sep 17 00:00:00 2001 From: Jon Schlueter Date: Tue, 17 Oct 2017 23:18:14 -0400 Subject: [PATCH] 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 --- bilean/api/openstack/versions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bilean/api/openstack/versions.py b/bilean/api/openstack/versions.py index c1610ba..1563be2 100644 --- a/bilean/api/openstack/versions.py +++ b/bilean/api/openstack/versions.py @@ -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