Skip to content

Commit ab62167

Browse files
committed
+ clean the mess
1 parent e611953 commit ab62167

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Modules/_struct.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,11 +2266,6 @@ s_pack(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
22662266
char *buf = PyBytesWriter_GetData(writer);
22672267

22682268
/* Call the guts */
2269-
if (PyMutex_IsLocked(&soself->mutex)) {
2270-
PyErr_SetString(PyExc_RuntimeError, "XXX");
2271-
PyBytesWriter_Discard(writer);
2272-
return NULL;
2273-
}
22742269
PyMutex_Lock(&soself->mutex);
22752270
if ( s_pack_internal(soself, args, 0, buf, state) != 0 ) {
22762271
PyMutex_Unlock(&soself->mutex);

0 commit comments

Comments
 (0)