From a5fcedf2021e6f9c168adab7f6bcec58f26f4963 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 2 Oct 2015 02:56:02 +0900 Subject: [PATCH] Python3 support improvement Change-Id: I9d238ab53d57f73e6c218a8886707db235a1b384 --- neutron_taas/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/neutron_taas/__init__.py b/neutron_taas/__init__.py index 710b18c..fa7a241 100644 --- a/neutron_taas/__init__.py +++ b/neutron_taas/__init__.py @@ -14,6 +14,10 @@ # under the License. import gettext +import six -gettext.install('neutron', unicode=1) +if six.PY2: + gettext.install('neutron', unicode=1) +else: + gettext.install('neutron')