commit | 7816e5142732cca24dafc2863edbd818aada7dba | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Mon Oct 22 12:42:46 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Mon Oct 22 12:42:46 2007 +0000 |
tree | 343ae1d92ca080c601788b73cf56fe28f27d7773 | |
parent | 40d20bcf1fccfe8af2393f1aec88ba18e38d0bc1 [diff] |
Fix exception indexing.
diff --git a/Lib/tempfile.py b/Lib/tempfile.py index ae2b77f..3b21ff2 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py
@@ -201,7 +201,7 @@ 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,