Searched refs:Zreplacement (Results 1 – 2 of 2) sorted by relevance
1426 PyObject *Zreplacement = PyUnicode_FromStringAndSize(NULL, 0); in make_Zreplacement() local1429 if (Zreplacement == NULL) in make_Zreplacement()1432 return Zreplacement; in make_Zreplacement()1440 return Zreplacement; in make_Zreplacement()1448 Py_DECREF(Zreplacement); in make_Zreplacement()1449 Zreplacement = _PyObject_CallMethodId(temp, &PyId_replace, "ss", "%", "%%"); in make_Zreplacement()1451 if (Zreplacement == NULL) in make_Zreplacement()1453 if (!PyUnicode_Check(Zreplacement)) { in make_Zreplacement()1458 return Zreplacement; in make_Zreplacement()1461 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 …]