summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-02-23 06:16:07 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-02-23 06:16:07 (GMT)
commit4dbcec9dd15f085be99c68fbe4fec685a27278f0 (patch)
tree9a65d8afe9f343d2d31b79310b4719f4b5eb79f4 /Lib
parentef1db54ac138a7d850b60a1f623805f5c4f1f7d7 (diff)
downloadcpython-4dbcec9dd15f085be99c68fbe4fec685a27278f0.zip
cpython-4dbcec9dd15f085be99c68fbe4fec685a27278f0.tar.gz
cpython-4dbcec9dd15f085be99c68fbe4fec685a27278f0.tar.bz2
Fix deprecation warning in tempfile.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/tempfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index 2dfc609..f2ddbb0 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,