diff options
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)) |