Searched refs:Zreplacement (Results 1 – 2 of 2) sorted by relevance
1417 PyObject *Zreplacement = PyUnicode_FromStringAndSize(NULL, 0); in make_Zreplacement() local1420 if (Zreplacement == NULL) in make_Zreplacement()1423 return Zreplacement; in make_Zreplacement()1431 return Zreplacement; in make_Zreplacement()1439 Py_DECREF(Zreplacement); in make_Zreplacement()1440 Zreplacement = _PyObject_CallMethodId(temp, &PyId_replace, "ss", "%", "%%"); in make_Zreplacement()1442 if (Zreplacement == NULL) in make_Zreplacement()1444 if (!PyUnicode_Check(Zreplacement)) { in make_Zreplacement()1449 return Zreplacement; in make_Zreplacement()1452 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 …]