From de2aa036df5b65a091bd58d9015c8f41087ccdc6 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sat, 3 Jan 2009 19:26:33 +0100 Subject: [PATCH] Fix typo --- src/sugar/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sugar/util.py b/src/sugar/util.py index d222f9c4..ac97f9af 100644 --- a/src/sugar/util.py +++ b/src/sugar/util.py @@ -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)