diff options
author | Doug Hellmann <doug@doughellmann.com> | 2015-01-21 19:48:41 -0500 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2015-01-21 19:48:41 -0500 |
commit | 3bc703b823969a08fc88bfb20e3d2440927dadb7 (patch) | |
tree | d0ee9c954a0796f5efeda016b155af2eabaa7764 | |
parent | c46b2c684ef487fe0544f978eff7380ef42a40ba (diff) | |
download | oslo-middleware-3bc703b823969a08fc88bfb20e3d2440927dadb7.tar.gz |
Move i18n module to a private name
The i18n module for this library is private to the library and should
never be used by outside code. Rename the module to reflect this.
Change-Id: I39149056daeeb27428b938fb9cd7278cd42f2444
-rw-r--r-- | oslo_middleware/_i18n.py (renamed from oslo_middleware/i18n.py) | 0 | ||||
-rw-r--r-- | oslo_middleware/catch_errors.py | 2 | ||||
-rw-r--r-- | oslo_middleware/healthcheck/disable_by_file.py | 2 | ||||
-rw-r--r-- | oslo_middleware/sizelimit.py | 2 | ||||
-rw-r--r-- | tox.ini | 2 |
5 files changed, 4 insertions, 4 deletions
diff --git a/oslo_middleware/i18n.py b/oslo_middleware/_i18n.py index 2025741..2025741 100644 --- a/oslo_middleware/i18n.py +++ b/oslo_middleware/_i18n.py diff --git a/oslo_middleware/catch_errors.py b/oslo_middleware/catch_errors.py index 89b4bd9..5004859 100644 --- a/oslo_middleware/catch_errors.py +++ b/oslo_middleware/catch_errors.py @@ -18,8 +18,8 @@ import logging import webob.dec import webob.exc +from oslo_middleware._i18n import _LE from oslo_middleware import base -from oslo_middleware.i18n import _LE LOG = logging.getLogger(__name__) diff --git a/oslo_middleware/healthcheck/disable_by_file.py b/oslo_middleware/healthcheck/disable_by_file.py index 7e964a4..05d61bf 100644 --- a/oslo_middleware/healthcheck/disable_by_file.py +++ b/oslo_middleware/healthcheck/disable_by_file.py @@ -16,8 +16,8 @@ import logging import os +from oslo_middleware._i18n import _LW from oslo_middleware.healthcheck import pluginbase -from oslo_middleware.i18n import _LW LOG = logging.getLogger(__name__) diff --git a/oslo_middleware/sizelimit.py b/oslo_middleware/sizelimit.py index d3f3039..d4f1ca9 100644 --- a/oslo_middleware/sizelimit.py +++ b/oslo_middleware/sizelimit.py @@ -22,8 +22,8 @@ from oslo_config import cfgfilter import webob.dec import webob.exc +from oslo_middleware._i18n import _ from oslo_middleware import base -from oslo_middleware.i18n import _ _oldopts = [cfg.DeprecatedOpt('osapi_max_request_body_size', @@ -37,4 +37,4 @@ ignore = E123,E125,H305,H803,H904 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,__init__.py [hacking] -import_exceptions = oslo_middleware.i18n +import_exceptions = oslo_middleware._i18n |