diff options
author | Ilya Pekelny <ipekelny@mirantis.com> | 2013-11-29 16:46:08 +0200 |
---|---|---|
committer | Morgan Fainberg <m@metacloud.com> | 2014-03-18 01:23:21 -0700 |
commit | 5f3fcf1123170006609e1db593c03c3b020a647c (patch) | |
tree | f7cd02d6783530767a167a0718966ca2ffef38ef /httpd | |
parent | d906f5774845d23ab517a263b8d4e7d0ceb949f5 (diff) | |
download | keystone-5f3fcf1123170006609e1db593c03c3b020a647c.tar.gz |
Uses explicit imports for _
Previously `_` was monkeypatched in tests/core.py and bin/keystone-*.
This meant that if a developer was not running the tests exactly as
the documentation described they would not work. Even importing
certain modules in a interactive Python interpreter would fail unless
keystone.tests was imported first. Monkeypatching was removed and
explicit import for `_` was added.
Co-Authored-By: David Stanek <dstanek@dstanek.com>
Change-Id: I8b25b5b6d83fb873e25a8fab7686babf1d2261fa
Closes-Bug: #1255518
Diffstat (limited to 'httpd')
-rw-r--r-- | httpd/keystone.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/httpd/keystone.py b/httpd/keystone.py index df6c11d13..b5da6ac12 100644 --- a/httpd/keystone.py +++ b/httpd/keystone.py @@ -17,13 +17,6 @@ import os from paste import deploy -from keystone.openstack.common import gettextutils - -# NOTE(blk-u): -# gettextutils.install() must run to set _ before importing any modules that -# contain static translated strings. -gettextutils.install('keystone', lazy=True) - from keystone.common import dependency from keystone.common import environment from keystone.common import sql |