Searched refs:tableobj (Results 1 – 2 of 2) sorted by relevance
1452 PyObject *tableobj = NULL, *delobj = NULL; in bytearray_translate() local1456 &tableobj, &delobj)) in bytearray_translate()1459 if (tableobj == Py_None) { in bytearray_translate()1461 tableobj = NULL; in bytearray_translate()1462 } else if (_getbuffer(tableobj, &vtable) < 0) { in bytearray_translate()1476 if (tableobj != NULL) in bytearray_translate()1524 if (tableobj != NULL) in bytearray_translate()
2208 PyObject *tableobj, *delobj = NULL; in string_translate() local2211 &tableobj, &delobj)) in string_translate()2214 if (PyString_Check(tableobj)) { in string_translate()2215 table = PyString_AS_STRING(tableobj); in string_translate()2216 tablen = PyString_GET_SIZE(tableobj); in string_translate()2218 else if (tableobj == Py_None) { in string_translate()2223 else if (PyUnicode_Check(tableobj)) { in string_translate()2232 return PyUnicode_Translate((PyObject *)self, tableobj, NULL); in string_translate()2235 else if (PyObject_AsCharBuffer(tableobj, &table, &tablen)) in string_translate()