This commit is contained in:
Tomeu Vizoso 2009-01-03 19:26:33 +01:00
parent 26e5fc5ca9
commit de2aa036df

View File

@ -268,7 +268,7 @@ class TempFilePath(str):
def __new__(cls, path=None):
if path is None:
fd, path = tempfile.mkstemp()
os.remove(fd)
os.close(fd)
logging.debug('TempFilePath created %r' % path)
return str.__new__(cls, path)