summaryrefslogtreecommitdiffstatshomepage
path: root/tools/codeformat.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/codeformat.py')
-rwxr-xr-xtools/codeformat.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/codeformat.py b/tools/codeformat.py
index f3efb5df75..b3e3d01268 100755
--- a/tools/codeformat.py
+++ b/tools/codeformat.py
@@ -70,10 +70,7 @@ C_EXTS = (
PY_EXTS = (".py",)
-FIXUP_REPLACEMENTS = (
- (re.compile("sizeof\(([a-z_]+)\) \*\(([a-z_]+)\)"), r"sizeof(\1) * (\2)"),
- (re.compile("([0-9]+) \*sizeof"), r"\1 * sizeof"),
-)
+FIXUP_REPLACEMENTS = ((re.compile("sizeof\(([a-z_]+)\) \*\(([a-z_]+)\)"), r"sizeof(\1) * (\2)"),)
def list_files(paths, exclusions=None, prefix=""):