Fix deprecation warning in tempfile.

This commit is contained in:
Ezio Melotti 2013-02-23 08:16:07 +02:00
parent ef1db54ac1
commit 4dbcec9dd1
1 changed files with 1 additions and 1 deletions

View File

@ -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,