mirror of
https://github.com/github/codeql.git
synced 2026-06-11 16:01:09 +02:00
21 lines
546 B
Python
21 lines
546 B
Python
from tempfile import mktemp
|
|
import os
|
|
|
|
def write_results1(results):
|
|
filename = mktemp() # $ Alert
|
|
with open(filename, "w+") as f:
|
|
f.write(results)
|
|
print("Results written to", filename)
|
|
|
|
def write_results2(results):
|
|
filename = os.tempnam() # $ Alert
|
|
with open(filename, "w+") as f:
|
|
f.write(results)
|
|
print("Results written to", filename)
|
|
|
|
def write_results3(results):
|
|
filename = os.tmpnam() # $ Alert
|
|
with open(filename, "w+") as f:
|
|
f.write(results)
|
|
print("Results written to", filename)
|