[polly] fix(polly/**.py): fix invalid escape sequences (PR #94037)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 23 05:27:07 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r f372bb45e39b7eae94930fc419724e12596a8361...155443973b9dece6be29d602107a1552ecb369d6 polly/test/update_check.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- update_check.py	2024-06-23 12:06:52.000000 +0000
+++ update_check.py	2024-06-23 12:26:42.085716 +0000
@@ -220,11 +220,16 @@
         else:
             yield set()
         line = i.__next__()
 
 
-replrepl = {"{{": "{{[{][{]}}", "}}": "{{[}][}]}}", "[[": r"{{\[\[}}", "]]": r"{{\]\]}}"}
+replrepl = {
+    "{{": "{{[{][{]}}",
+    "}}": "{{[}][}]}}",
+    "[[": r"{{\[\[}}",
+    "]]": r"{{\]\]}}",
+}
 replre = re.compile("|".join(re.escape(k) for k in replrepl.keys()))
 
 
 def main():
     parser = argparse.ArgumentParser(description="Update CHECK lines")

``````````

</details>


https://github.com/llvm/llvm-project/pull/94037


More information about the llvm-commits mailing list