
from oslo import i18n

_translators = i18n.TranslatorFactory(domain='oslo.concurrency')

# 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


import oslo_i18n

_translators = oslo_i18n.TranslatorFactory(domain='oslo.concurrency')

# 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

Drop use of namespaced oslo.i18n
Drop use of namespaced oslo.i18n

Related-blueprint: drop-namespace-packages

Change-Id: Ic8247cb896ba6337932d7a74618debd698584fa0

  
- from oslo import i18n
+ import oslo_i18n
  
- _translators = i18n.TranslatorFactory(domain='oslo.concurrency')
+ _translators = oslo_i18n.TranslatorFactory(domain='oslo.concurrency')
  
  # 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
  
Drop use of namespaced oslo.i18n
## Code Before:

from oslo import i18n

_translators = i18n.TranslatorFactory(domain='oslo.concurrency')

# 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

## Instruction:
Drop use of namespaced oslo.i18n
## Code After:

import oslo_i18n

_translators = oslo_i18n.TranslatorFactory(domain='oslo.concurrency')

# 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
