[clang] [llvm] Ci fifo (PR #113703)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 25 08:41:24 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 9043bdbce4ab1c6f07e72ddfedf7165bdf2b3e40...ffe6c67a2d71ef931dbf4d058f3908b829a5cd87 .ci/fifo_read.py .ci/generate_test_report.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- fifo_read.py 2024-10-25 15:37:37.000000 +0000
+++ fifo_read.py 2024-10-25 15:40:57.771679 +0000
@@ -1,14 +1,14 @@
import os
import sys
import tempfile
if __name__ == "__main__":
- while True:
- fifo_path = sys.argv[1]
- with open(sys.argv[1], 'rb') as fifo:
- filename, ext = os.path.splitext(os.path.basename(fifo_path))
- fd, _ = tempfile.mkstemp(
- suffix=ext, prefix=f"{filename}.", dir=os.path.dirname(fifo_path))
- with os.fdopen(fd, 'wb') as out:
- out.write(fifo.read())
-
+ while True:
+ fifo_path = sys.argv[1]
+ with open(sys.argv[1], "rb") as fifo:
+ filename, ext = os.path.splitext(os.path.basename(fifo_path))
+ fd, _ = tempfile.mkstemp(
+ suffix=ext, prefix=f"{filename}.", dir=os.path.dirname(fifo_path)
+ )
+ with os.fdopen(fd, "wb") as out:
+ out.write(fifo.read())
``````````
</details>
https://github.com/llvm/llvm-project/pull/113703
More information about the llvm-commits
mailing list