From 61827da6ff6b824b96d5ab9c5c0bdc993bdbf477 Mon Sep 17 00:00:00 2001 From: Michael Turek Date: Tue, 21 Mar 2017 13:00:56 -0400 Subject: [PATCH] Remove translator assignments from i18n We are cleaning out all calls to logging translation wrappers from ironic. This patch removes the assignments of _LC, _LE, _LI, and _LW from ironic.common.i18n. These must be removed after all the calls to them are removed, otherwise there would be failures as the function calls would no longer resolve. Dependent patches listed are the other standing translation cleanup patches. Closes-Bug: #1674374 Change-Id: I6e44d366cb6754c5c6bdf4a9fdd67dc8b230e397 --- ironic/common/i18n.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ironic/common/i18n.py b/ironic/common/i18n.py index ec371bc2c4..7b82afeaf2 100644 --- a/ironic/common/i18n.py +++ b/ironic/common/i18n.py @@ -25,13 +25,3 @@ _translators = i18n.TranslatorFactory(domain='ironic') # The primary translation function using the well-known name "_" _ = _translators.primary - -# Translators for log levels. -# -# The abbreviated names are meant to reflect the usual use of a short -# name like '_'. The "L" is for "log" and the other letter comes from -# the level. -_LI = _translators.log_info -_LW = _translators.log_warning -_LE = _translators.log_error -_LC = _translators.log_critical