Skip to content

Commit ad4380b

Browse files
committed
Simplify str -> repr for templating
1 parent 83795f8 commit ad4380b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

refresh_compile_commands.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def _expand_template_impl(ctx):
9393
# Note, don't delete whitespace. Correctly doing multiline indenting.
9494
" {target_flag_pairs}": "\n".join([" {},".format(pair) for pair in ctx.attr.labels_to_flags.items()]),
9595
" {windows_default_include_paths}": "\n".join([" %r," % path for path in find_cpp_toolchain(ctx).built_in_include_directories]), # find_cpp_toolchain is from https://docs.bazel.build/versions/main/integrating-with-rules-cc.html
96-
"{exclude_headers}": '"' + str(ctx.attr.exclude_headers) + '"',
97-
"{exclude_external_sources}": str(ctx.attr.exclude_external_sources),
96+
"{exclude_headers}": repr(ctx.attr.exclude_headers),
97+
"{exclude_external_sources}": repr(ctx.attr.exclude_external_sources),
9898
},
9999
)
100100
return DefaultInfo(files = depset([script]))

0 commit comments

Comments
 (0)