diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-05-06 16:32:54 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-05-06 16:32:54 +0000 |
commit | d4e3bb3d3976ed3e20ad9c00dae010f32aa981ae (patch) | |
tree | 9df7ead26ef28462e8940a39c5af7f0f92f6a817 /Lib/tempfile.py | |
parent | ce5933f5828d94b39d465f55c506da0aa4480402 (diff) | |
download | cpython-git-d4e3bb3d3976ed3e20ad9c00dae010f32aa981ae.tar.gz |
Port access, chmod, parts of getcwdu, mkdir, and utime to direct Win32 API.
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r-- | Lib/tempfile.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py index dd7e8643e6..83dfa171db 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -327,6 +327,10 @@ def mkdtemp(suffix="", prefix=template, dir=None): try: _os.mkdir(file, 0700) return file + except WindowsError, e: + if e.errno == 183: # ERROR_ALREADY_EXISTS + continue # try again + raise except OSError, e: if e.errno == _errno.EEXIST: continue # try again |