mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix exception indexing.
This commit is contained in:
parent
40d20bcf1f
commit
7816e51427
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ def _get_default_tempdir():
|
||||||
del fp, fd
|
del fp, fd
|
||||||
return dir
|
return dir
|
||||||
except (OSError, IOError) as e:
|
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
|
break # no point trying more names in this directory
|
||||||
pass
|
pass
|
||||||
raise IOError(_errno.ENOENT,
|
raise IOError(_errno.ENOENT,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue