From 64884f0a6e481761a236b53d2a21c26753d10489 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 23 Jul 2014 15:46:45 -0400 Subject: [PATCH] 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 --- oslo/utils/{i18n.py => _i18n.py} | 0 oslo/utils/excutils.py | 2 +- oslo/utils/netutils.py | 2 +- oslo/utils/strutils.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename oslo/utils/{i18n.py => _i18n.py} (100%) diff --git a/oslo/utils/i18n.py b/oslo/utils/_i18n.py similarity index 100% rename from oslo/utils/i18n.py rename to oslo/utils/_i18n.py diff --git a/oslo/utils/excutils.py b/oslo/utils/excutils.py index 7f988905..732492ee 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 27b1faba..025aa5d0 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 7367fbb1..9ce93bf5 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 = {