summaryrefslogtreecommitdiff
path: root/oslo_config
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_config')
-rw-r--r--oslo_config/generator.py6
-rw-r--r--oslo_config/tests/test_get_location.py2
2 files changed, 3 insertions, 5 deletions
diff --git a/oslo_config/generator.py b/oslo_config/generator.py
index 9fdde09..9845c81 100644
--- a/oslo_config/generator.py
+++ b/oslo_config/generator.py
@@ -288,11 +288,9 @@ class _OptFormatter:
else:
opt_help = opt.help
- help_text = u'%s%s (%s)' % (opt_prefix,
- opt_help,
- opt_type)
+ help_text = '%s%s (%s)' % (opt_prefix, opt_help, opt_type)
else:
- help_text = u'(%s)' % opt_type
+ help_text = '(%s)' % opt_type
lines = self._format_help(help_text)
if getattr(opt.type, 'min', None) is not None:
diff --git a/oslo_config/tests/test_get_location.py b/oslo_config/tests/test_get_location.py
index 9541708..d06271a 100644
--- a/oslo_config/tests/test_get_location.py
+++ b/oslo_config/tests/test_get_location.py
@@ -137,7 +137,7 @@ class GetLocationTestCase(base.BaseTestCase):
def _write_opt_to_tmp_file(self, group, option, value):
filename = tempfile.mktemp()
with io.open(filename, 'w', encoding='utf-8') as f:
- f.write(textwrap.dedent(u'''
+ f.write(textwrap.dedent('''
[{group}]
{option} = {value}
''').format(