From 80fb344a188fd201144a47a0d41a62fb97ff01ec Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 15 Dec 1997 19:11:53 +0000 Subject: [PATCH] On NT, use a better template, ~XXX- where XXX is os.getpid(). --- Lib/tempfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 652d1963d3d..d36898b3086 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -60,6 +60,8 @@ def gettempprefix(): if template == None: if os.name == 'posix': template = '@' + `os.getpid()` + '.' + elif os.name == 'nt': + template = '~' + `os.getpid()` + '-' elif os.name == 'mac': template = 'Python-Tmp-' else: