diff options
| author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-11-15 17:25:54 +0100 |
|---|---|---|
| committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-11-15 17:25:54 +0100 |
| commit | 84dd5e2ab0c02dbdfa79a99a5b8d2646fa8984d1 (patch) | |
| tree | d9487974517ab21639b1c869eea7743d8355e44a /Python/sysmodule.c | |
| parent | 84e6bd64dd98985c415420d7615077ff7a7cd4ac (diff) | |
| parent | 22454df994214799dddfc7e7aaf96fae51f002a9 (diff) | |
| download | cpython-84dd5e2ab0c02dbdfa79a99a5b8d2646fa8984d1.tar.gz | |
Issue #26929: Merge 3.6
Diffstat (limited to 'Python/sysmodule.c')
| -rw-r--r-- | Python/sysmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index e348b3873e..9247d4ed69 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1547,8 +1547,9 @@ error: Py_XDECREF(name); Py_XDECREF(value); /* No return value, therefore clear error state if possible */ - if (_PyThreadState_UncheckedGet()) + if (_PyThreadState_UncheckedGet()) { PyErr_Clear(); + } } PyObject * |
