From: Guido van Rossum Date: Mon, 15 Dec 1997 19:11:53 +0000 (+0000) Subject: On NT, use a better template, ~XXX- where XXX is os.getpid(). X-Git-Tag: v1.5~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80fb344a188fd201144a47a0d41a62fb97ff01ec;p=thirdparty%2FPython%2Fcpython.git On NT, use a better template, ~XXX- where XXX is os.getpid(). --- diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 652d1963d3d7..d36898b3086d 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: