Kaydet (Commit) 80fb344a authored tarafından Guido van Rossum's avatar Guido van Rossum

On NT, use a better template, ~XXX- where XXX is os.getpid().

üst 85f8b098
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment