From 4dbcec9dd15f085be99c68fbe4fec685a27278f0 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Sat, 23 Feb 2013 08:16:07 +0200 Subject: [PATCH] Fix deprecation warning in tempfile. --- Lib/tempfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 2dfc6095cb1..f2ddbb0d9ca 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -205,7 +205,7 @@ def _get_default_tempdir(): _os.unlink(filename) 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,