Skip to content

Commit 91df295

Browse files
authored
use f-string (#98)
Signed-off-by: Dirk Thomas <[email protected]>
1 parent e056999 commit 91df295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rosidl_generator_py/rosidl_generator_py/generate_py_impl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def generate_py(generator_arguments_file, typesupport_impls):
7979
module_name = '_' + \
8080
convert_camel_case_to_lower_case_underscore(idl_stem)
8181
f.write(
82-
'from {package_name}.{subfolder}.{module_name} import '
83-
'{idl_stem} # noqa: F401\n'.format_map(locals()))
82+
f'from {package_name}.{subfolder}.{module_name} import '
83+
f'{idl_stem} # noqa: F401\n')
8484

8585
# expand templates per available typesupport implementation
8686
template_dir = args['template_dir']

0 commit comments

Comments
 (0)