Home
last modified time | relevance | path

Searched refs:empty_dict (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Modules/
Dparsermodule.c1059 PyObject *empty_dict = NULL; in parser__pickler() local
1065 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()
D_json.c1560 static PyObject *empty_dict = NULL; in encoder_listencode_dict() local
1568 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()
/external/python/cpython2/Modules/
D_json.c2065 static PyObject *empty_dict = NULL; in encoder_listencode_dict() local
2074 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()
Dparsermodule.c3401 PyObject *empty_dict = NULL; in parser__pickler() local
3407 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()
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Dbase_config_unittest.py1397 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),
/external/protobuf/python/google/protobuf/pyext/
Dmessage.cc2889 ScopedPyObjectPtr empty_dict(PyDict_New()); in CheckAndGetInteger() local
2890 if (empty_dict == NULL) { in CheckAndGetInteger()
2893 ScopedPyObjectPtr immutable_dict(PyDictProxy_New(empty_dict.get())); in CheckAndGetInteger()