summaryrefslogtreecommitdiff
path: root/glanceclient/common
diff options
context:
space:
mode:
authorkairat_kushaev <kkushaev@mirantis.com>2015-09-29 12:08:00 +0300
committerkairat_kushaev <kkushaev@mirantis.com>2015-10-16 11:26:11 +0300
commit6b9133c9b60788e360919590309789098727c3e5 (patch)
tree1d9a84a539086e5d2e8db840fe98db6e465bed1f /glanceclient/common
parent2fcff11b90748b32e6e38c7bdd6fe11103764485 (diff)
downloadpython-glanceclient-6b9133c9b60788e360919590309789098727c3e5.tar.gz
Import i18n functions directly
As stated in i18n guide it is normal to import i18n functions (_, _LW..) directly and we can include i18n functions in hacking exceptions. Also there is no need to make exceptions for six moves because pep8 passes correctly without it. Change-Id: I9c9aa490f1447bb7ae221809df7bc110c27d1336
Diffstat (limited to 'glanceclient/common')
-rw-r--r--glanceclient/common/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/glanceclient/common/utils.py b/glanceclient/common/utils.py
index 37dc43c..bf23f2d 100644
--- a/glanceclient/common/utils.py
+++ b/glanceclient/common/utils.py
@@ -37,10 +37,9 @@ from oslo_utils import encodeutils
from oslo_utils import strutils
import prettytable
-from glanceclient import _i18n
+from glanceclient._i18n import _
from glanceclient import exc
-_ = _i18n._
_memoized_property_lock = threading.Lock()