diff options
| author | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 19:07:53 +0100 |
|---|---|---|
| committer | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 19:07:53 +0100 |
| commit | 46a196cde9328e2a232ee15c19556eb962cda0ab (patch) | |
| tree | d1cd03326530912d925ee1a7ba7fa735006f004f /tools/rtti_scan.py | |
| parent | d3fab00a78967adf357596996190afdf33dc09d5 (diff) | |
| parent | ec8ec4c9a46c6623f1a9c125afd3566da97f1e0c (diff) | |
Merge upstream main into first-light shader identity
Diffstat (limited to 'tools/rtti_scan.py')
| -rw-r--r-- | tools/rtti_scan.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/rtti_scan.py b/tools/rtti_scan.py index ca769ed08..710cabc7f 100644 --- a/tools/rtti_scan.py +++ b/tools/rtti_scan.py | |||
| @@ -199,8 +199,8 @@ def write_report(path, text): | |||
| 199 | parent = os.path.dirname(os.path.abspath(path)) | 199 | parent = os.path.dirname(os.path.abspath(path)) |
| 200 | tmp = None | 200 | tmp = None |
| 201 | try: | 201 | try: |
| 202 | with tempfile.NamedTemporaryFile("w", encoding="utf-8", dir=parent, prefix=".rtti-", suffix=".tmp", | 202 | with tempfile.NamedTemporaryFile("w", encoding="utf-8", newline="\n", dir=parent, prefix=".rtti-", |
| 203 | delete=False) as f: | 203 | suffix=".tmp", delete=False) as f: |
| 204 | tmp = f.name | 204 | tmp = f.name |
| 205 | f.write(text) | 205 | f.write(text) |
| 206 | os.chmod(tmp, published_mode(path)) | 206 | os.chmod(tmp, published_mode(path)) |