blob: fc667db0197401da129378a6fc5e60c5ff90b0a3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import tempfile
import os
def tmpData(data):
"""Put data into a temporary file returning the filename """
fd, fn = tempfile.mkstemp()
os.write(fd, data)
os.close(fd)
return fn
|