From: fumihiko kakuma Date: Sat, 8 Aug 2015 13:08:39 +0000 (+0900) Subject: Python 3: encode unicode response bodies X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=7f4777f42f8b21b4ba663e063acb7aca3ec255bd;p=openstack-build%2Fneutron-build.git Python 3: encode unicode response bodies This change adds a file needing a python 3 support by Ie0dc57fbe3ed9b19dac2e958de14387bc4c1a260. Change-Id: Ice6e8ae618b82ff45398c338c3eee27ed9d5a105 Blueprint: neutron-python3 --- diff --git a/neutron/api/versions.py b/neutron/api/versions.py index 3d9cfec6c..857dd6eca 100644 --- a/neutron/api/versions.py +++ b/neutron/api/versions.py @@ -57,6 +57,6 @@ class Versions(object): response = webob.Response() response.content_type = content_type - response.body = body + response.body = wsgi.encode_body(body) return response