Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def tmp_write_prefix(interpreter):
with tempfile.TemporaryFile() as fd:
write_file_prefix(fd, interpreter)
fd.seek(0)
written = fd.read()
return written