diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-05-11 13:28:43 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-05-11 13:28:43 (GMT) |
commit | 879768dd97f98626c919a460a90dd0d54855de9c (patch) | |
tree | 8813f6d751a0087d8402860bc82e54ca87f0028c /Lib/tempfile.py | |
parent | 38e3b7d2d36a2029ad86c9c23d031e5350e80d35 (diff) | |
download | cpython-879768dd97f98626c919a460a90dd0d54855de9c.zip cpython-879768dd97f98626c919a460a90dd0d54855de9c.tar.gz cpython-879768dd97f98626c919a460a90dd0d54855de9c.tar.bz2 |
Change WindowsError to carry the Win32 error code in winerror,
and the DOS error code in errno. Revert changes where
WindowsError catch blocks unnecessarily special-case OSError.
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r-- | Lib/tempfile.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 83dfa17..dd7e864 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -327,10 +327,6 @@ 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 |