summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oslo_i18n/_gettextutils.py3
-rw-r--r--oslo_i18n/_translate.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/oslo_i18n/_gettextutils.py b/oslo_i18n/_gettextutils.py
index 75a8313..8d78376 100644
--- a/oslo_i18n/_gettextutils.py
+++ b/oslo_i18n/_gettextutils.py
@@ -22,7 +22,6 @@ import gettext
import os
from babel import localedata
-import six
from oslo_i18n import _factory
from oslo_i18n import _locale
@@ -82,7 +81,7 @@ def get_available_languages(domain):
'zh_Hant': 'zh_TW',
'fil': 'tl_PH'}
- language_list.extend(alias for locale, alias in six.iteritems(aliases)
+ language_list.extend(alias for locale, alias in aliases.items()
if (locale in language_list and
alias not in language_list))
diff --git a/oslo_i18n/_translate.py b/oslo_i18n/_translate.py
index 1809e1e..4592196 100644
--- a/oslo_i18n/_translate.py
+++ b/oslo_i18n/_translate.py
@@ -68,6 +68,6 @@ def translate_args(args, desired_locale=None):
return tuple(translate(v, desired_locale) for v in args)
if isinstance(args, dict):
translated_dict = dict((key, translate(value, desired_locale))
- for key, value in six.iteritems(args))
+ for key, value in args.items())
return translated_dict
return translate(args, desired_locale)