Import missing gettext _

All ceilometer service/agent use gettextutils.install but
gettext method _ is not even installed for test.

This change, import gettext method _ explicitly in each file
that use _ .

Change-Id: Ic30e301f420a4626c3b8725aa450cd7638ece3fe
This commit is contained in:
Mehdi Abaakouk 2013-08-14 17:15:40 +02:00
parent 7c14a42bd6
commit 1c224dded0
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ import wsmeext.pecan as wsme_pecan
from wsme import types as wtypes
from ceilometer.openstack.common import context
from ceilometer.openstack.common.gettextutils import _
from ceilometer.openstack.common import log
from ceilometer.openstack.common import timeutils
from ceilometer import sample

View File

@ -19,6 +19,7 @@
from collections import defaultdict
from ceilometer import sample
from ceilometer.openstack.common.gettextutils import _
from ceilometer.openstack.common import log
from ceilometer.openstack.common import timeutils
from ceilometer import transformer