diff options
| author | Victor Stinner <vstinner@redhat.com> | 2016-05-30 17:06:31 +0200 |
|---|---|---|
| committer | Victor Stinner <vstinner@redhat.com> | 2016-05-30 17:14:15 +0200 |
| commit | 623cef2d5c5d9f375c60c991f5ab9f951e9253fa (patch) | |
| tree | 6aee99afc09b9e4ff52fad385a0d53fa6506f9a1 | |
| parent | df81163fcef785b862f202170ce8bbbbf4372389 (diff) | |
| download | python-cinderclient-1.8.0.tar.gz | |
Don't enable lazy translation when loading client1.8.0
The change I9c8db9487b554b637a41620c858a7e7abf802879 introduced a
regression in nova and trove. Importing cinderclient.client now calls
_i18n.enable_lazy() which calls oslo_i18n.enable_lazy(). It's wrong to
modify a global variable (oslo_i18n._lazy.USE_LAZY) when a module is
imported.
This change removes the call to _i18n.enable_lazy() from client.py.
Closes-Bug: #1587071
Related-Bug: 1586976
Change-Id: I1512b86815e7248fa226c6969124ddc654145562
| -rw-r--r-- | cinderclient/client.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cinderclient/client.py b/cinderclient/client.py index f1d0fe9..59d4cd0 100644 --- a/cinderclient/client.py +++ b/cinderclient/client.py @@ -44,10 +44,6 @@ from oslo_utils import encodeutils from oslo_utils import importutils from oslo_utils import strutils -from cinderclient import _i18n -# Enable i18n lazy translation -_i18n.enable_lazy() - osprofiler_web = importutils.try_import("osprofiler.web") import six.moves.urllib.parse as urlparse |
