Fix small bug with temp file name
This commit is contained in:
parent
63882c9da6
commit
fffdae7ca6
|
@ -7,6 +7,8 @@ from common import replaceContent
|
||||||
|
|
||||||
def makeTmpFile(content):
|
def makeTmpFile(content):
|
||||||
fd, path = tempfile.mkstemp()
|
fd, path = tempfile.mkstemp()
|
||||||
|
while ('_' in path):
|
||||||
|
fd, path = tempfile.mkstemp()
|
||||||
with os.fdopen(fd, 'w') as tmp:
|
with os.fdopen(fd, 'w') as tmp:
|
||||||
tmp.write(content)
|
tmp.write(content)
|
||||||
return path
|
return path
|
||||||
|
|
Loading…
Reference in New Issue