File: | bitarray/_bitarray.c |
Function: | bitarray_pack |
Error: | returning (PyObject*)NULL without setting an exception |
1361 static PyObject *
1362 bitarray_pack(bitarrayobject *self, PyObject *string)
1363 {
1364 if (!PyString_Check(string)) {
when considering range: 1 <= value <= 0x8000000
taking False path
1365 PyErr_SetString(PyExc_TypeError, "string expected");
1366 return NULL;
1367 }
1368 if (extend_string(self, string, STR_RAW) < 0)
when considering range: -0x80000000 <= value <= -1
taking True path
1369 return NULL;
1370
1371 Py_RETURN_NONE;
1372 }
returning (PyObject*)NULL without setting an exception