mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
bltin_exc[]: EnvironmentError is not a "leaf exception", so set it's
leaf_exc flag to zero otherwise the name leaks memory.
This commit is contained in:
parent
75930b31e2
commit
7890203f49
1 changed files with 1 additions and 1 deletions
|
@ -2005,7 +2005,7 @@ bltin_exc[] = {
|
|||
{"AttributeError", &PyExc_AttributeError, 1},
|
||||
{"EOFError", &PyExc_EOFError, 1},
|
||||
{"FloatingPointError", &PyExc_FloatingPointError, 1},
|
||||
{"EnvironmentError", &PyExc_EnvironmentError, 1},
|
||||
{"EnvironmentError", &PyExc_EnvironmentError, 0},
|
||||
{"IOError", &PyExc_IOError, 1},
|
||||
{"OSError", &PyExc_OSError, 1},
|
||||
{"ImportError", &PyExc_ImportError, 1},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue