summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2014-07-23 15:46:45 -0400
committerDoug Hellmann <doug@doughellmann.com>2014-07-23 15:46:45 -0400
commit64884f0a6e481761a236b53d2a21c26753d10489 (patch)
treecb2d519214da9121ab6aef370ca3bf45b13ce280
parent51e6c14a75d79edd16a405b05d18c30d6bfd7d49 (diff)
downloadoslo-utils-64884f0a6e481761a236b53d2a21c26753d10489.tar.gz
Make the i18n integration module private
Rename oslo.utils.i18n to oslo.utils._i18n to highlight the fact that it is an implementation detail and should not be imported and used by consumers of oslo.utils. Change-Id: Ib271f7e1216e3c865929d39749a9fb96237ad4f2
-rw-r--r--oslo/utils/_i18n.py (renamed from oslo/utils/i18n.py)0
-rw-r--r--oslo/utils/excutils.py2
-rw-r--r--oslo/utils/netutils.py2
-rw-r--r--oslo/utils/strutils.py2
4 files changed, 3 insertions, 3 deletions
diff --git a/oslo/utils/i18n.py b/oslo/utils/_i18n.py
index 6045a10..6045a10 100644
--- a/oslo/utils/i18n.py
+++ b/oslo/utils/_i18n.py
diff --git a/oslo/utils/excutils.py b/oslo/utils/excutils.py
index 7f98890..732492e 100644
--- a/oslo/utils/excutils.py
+++ b/oslo/utils/excutils.py
@@ -24,7 +24,7 @@ import traceback
import six
-from oslo.utils.i18n import _LE
+from oslo.utils._i18n import _LE
class save_and_reraise_exception(object):
diff --git a/oslo/utils/netutils.py b/oslo/utils/netutils.py
index 27b1fab..025aa5d 100644
--- a/oslo/utils/netutils.py
+++ b/oslo/utils/netutils.py
@@ -22,7 +22,7 @@ import socket
from six.moves.urllib import parse
-from oslo.utils.i18n import _LW
+from oslo.utils._i18n import _LW
LOG = logging.getLogger(__name__)
diff --git a/oslo/utils/strutils.py b/oslo/utils/strutils.py
index 7367fbb..9ce93bf 100644
--- a/oslo/utils/strutils.py
+++ b/oslo/utils/strutils.py
@@ -23,8 +23,8 @@ import unicodedata
import six
+from oslo.utils._i18n import _
from oslo.utils import encodeutils
-from oslo.utils.i18n import _
UNIT_PREFIX_EXPONENT = {