New submission from Christian Heimes: tempfile breaks on Windows because exception objectss no longer support e[0]. The fix is simple and short:
Index: Lib/tempfile.py =================================================================== --- Lib/tempfile.py (Revision 58587) +++ Lib/tempfile.py (Arbeitskopie) @@ -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 ---------- components: Library (Lib) messages: 56638 nosy: tiran severity: normal status: open title: tempfile breaks on Windows type: behavior versions: Python 3.0 __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1310> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com