summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/codeformat.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/codeformat.py b/tools/codeformat.py
index fb2a94e49..e9615ae56 100644
--- a/tools/codeformat.py
+++ b/tools/codeformat.py
@@ -167,10 +167,7 @@ def main():
for file in lang_files(C_EXTS):
fixup_c(file)
# Revert "// |" back to "//|"
- subprocess.call(
- "find shared-bindings ports/*/bindings -name '*.c' -exec sed -i 's/\/ |/\/|/' {} \;",
- shell=True,
- )
+ batch(["sed", "-i", "s,^// |,//|,"], lang_files(C_EXTS))
# Format Python files with black.
if format_py: