Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5154ad

Browse files
committed
Merged revisions 84172 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ........ r84172 | martin.v.loewis | 2010-08-18 18:12:23 +0200 (Mi, 18 Aug 2010) | 2 lines Restore GIL in nis_cat in case of error. ........
1 parent 72994f6 commit a5154ad

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ What's New in Python 3.1.3?
1212
Core and Builtins
1313
-----------------
1414

15+
- Restore GIL in nis_cat in case of error.
16+
1517
- Issue #5319: Print an error if flushing stdout fails at interpreter
1618
shutdown.
1719

Modules/nismodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ nis_foreach (int instatus, char *inkey, int inkeylen, char *inval,
124124
PyErr_Clear();
125125
Py_XDECREF(key);
126126
Py_XDECREF(val);
127+
indata->state = PyEval_SaveThread();
127128
return 1;
128129
}
129130
err = PyDict_SetItem(indata->dict, key, val);

0 commit comments

Comments
 (0)