This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes
Date 2007-10-22.02:23:02
SpamBayes Score 0.12974285
Marked as misclassified No
Message-id <1193019783.77.0.732948071539.issue1310@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2007-10-22 02:23:04christian.heimessetspambayes_score: 0.129743 -> 0.12974285
recipients: + christian.heimes
2007-10-22 02:23:03christian.heimessetspambayes_score: 0.129743 -> 0.129743
messageid: <1193019783.77.0.732948071539.issue1310@psf.upfronthosting.co.za>
2007-10-22 02:23:03christian.heimeslinkissue1310 messages
2007-10-22 02:23:02christian.heimescreate