Searched refs:empty_dict (Results 1 – 6 of 6) sorted by relevance
1059 PyObject *empty_dict = NULL; in parser__pickler() local1065 if ((empty_dict = PyDict_New()) == NULL) in parser__pickler()1069 tuple = parser_st2tuple((PyST_Object*)NULL, newargs, empty_dict); in parser__pickler()1077 Py_XDECREF(empty_dict); in parser__pickler()
1560 static PyObject *empty_dict = NULL; in encoder_listencode_dict() local1568 if (open_dict == NULL || close_dict == NULL || empty_dict == NULL) { in encoder_listencode_dict()1571 empty_dict = PyUnicode_InternFromString("{}"); in encoder_listencode_dict()1572 if (open_dict == NULL || close_dict == NULL || empty_dict == NULL) in encoder_listencode_dict()1576 return _PyAccu_Accumulate(acc, empty_dict); in encoder_listencode_dict()
2065 static PyObject *empty_dict = NULL; in encoder_listencode_dict() local2074 if (open_dict == NULL || close_dict == NULL || empty_dict == NULL) { in encoder_listencode_dict()2077 empty_dict = PyString_InternFromString("{}"); in encoder_listencode_dict()2078 if (open_dict == NULL || close_dict == NULL || empty_dict == NULL) in encoder_listencode_dict()2082 return PyList_Append(rval, empty_dict); in encoder_listencode_dict()
3401 PyObject *empty_dict = NULL; in parser__pickler() local3407 if ((empty_dict = PyDict_New()) == NULL) in parser__pickler()3411 tuple = parser_st2tuple((PyST_Object*)NULL, newargs, empty_dict); in parser__pickler()3419 Py_XDECREF(empty_dict); in parser__pickler()
1397 self.empty_dict = {'config_type': self.config_type,1448 json_mock.load.return_value = self.empty_dict.copy()1452 self.assertEqual(self.GetConfigDataFromDict(self.empty_dict),
2889 ScopedPyObjectPtr empty_dict(PyDict_New()); in CheckAndGetInteger() local2890 if (empty_dict == NULL) { in CheckAndGetInteger()2893 ScopedPyObjectPtr immutable_dict(PyDictProxy_New(empty_dict.get())); in CheckAndGetInteger()