summaryrefslogtreecommitdiff
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-10-22 12:42:46 +0000
committerGeorg Brandl <georg@python.org>2007-10-22 12:42:46 +0000
commit7f8a2fb6119f92c7cf4f68bab3bfe4dacbae7117 (patch)
treef83eaf792253c5ff2813a34bfd1c1d18cfc48d21 /Lib/tempfile.py
parentc61b62d60bde6898d2fafca6553dab511b952a74 (diff)
downloadcpython-7f8a2fb6119f92c7cf4f68bab3bfe4dacbae7117.tar.gz
Fix exception indexing.
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index ae2b77ff43..3b21ff2935 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -201,7 +201,7 @@ def _get_default_tempdir():
del fp, fd
return dir
except (OSError, IOError) as e:
- if e[0] != _errno.EEXIST:
+ if e.args[0] != _errno.EEXIST:
break # no point trying more names in this directory
pass
raise IOError(_errno.ENOENT,