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
21 lines
516 B
Python
21 lines
516 B
Python
from tempfile import mktemp
|
|
import os
|
|
|
|
def write_results1(results):
|
|
filename = mktemp()
|
|
with open(filename, "w+") as f:
|
|
f.write(results)
|
|
print("Results written to", filename)
|
|
|
|
def write_results2(results):
|
|
filename = os.tempnam()
|
|
with open(filename, "w+") as f:
|
|
f.write(results)
|
|
print("Results written to", filename)
|
|
|
|
def write_results3(results):
|
|
filename = os.tmpnam()
|
|
with open(filename, "w+") as f:
|
|
f.write(results)
|
|
print("Results written to", filename)
|