mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
We were mixing between things, so this is just to keep things consistent. Even though it's not strictly needed for all queries, it does look nice I think
7 lines
193 B
Python
7 lines
193 B
Python
from tempfile import NamedTemporaryFile
|
|
|
|
def write_results(results):
|
|
with NamedTemporaryFile(mode="w+", delete=False) as f:
|
|
f.write(results)
|
|
print("Results written to", f.name)
|