Searched refs:Zreplacement (Results 1 – 2 of 2) sorted by relevance
1406 PyObject *Zreplacement = PyUnicode_FromStringAndSize(NULL, 0); in make_Zreplacement() local1409 if (Zreplacement == NULL) in make_Zreplacement()1412 return Zreplacement; in make_Zreplacement()1420 return Zreplacement; in make_Zreplacement()1428 Py_DECREF(Zreplacement); in make_Zreplacement()1429 Zreplacement = _PyObject_CallMethodId(temp, &PyId_replace, "ss", "%", "%%"); in make_Zreplacement()1431 if (Zreplacement == NULL) in make_Zreplacement()1433 if (!PyUnicode_Check(Zreplacement)) { in make_Zreplacement()1438 return Zreplacement; in make_Zreplacement()1441 Py_DECREF(Zreplacement); in make_Zreplacement()[all …]
1168 PyObject *Zreplacement = NULL; /* py string, replacement for %Z */ in wrap_strftime() local1264 if (Zreplacement == NULL) { in wrap_strftime()1266 Zreplacement = PyString_FromString(""); in wrap_strftime()1267 if (Zreplacement == NULL) goto Done; in wrap_strftime()1281 Py_DECREF(Zreplacement); in wrap_strftime()1282 Zreplacement = PyObject_CallMethod( in wrap_strftime()1286 if (Zreplacement == NULL) in wrap_strftime()1288 if (!PyString_Check(Zreplacement)) { in wrap_strftime()1297 assert(Zreplacement != NULL); in wrap_strftime()1298 ptoappend = PyString_AS_STRING(Zreplacement); in wrap_strftime()[all …]