diff options
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r-- | Lib/tempfile.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 652d1963d3..d36898b308 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: |