Home
last modified time | relevance | path

Searched refs:zreplacement (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
Ddatetimemodule.c1167 PyObject *zreplacement = NULL; /* py string, replacement for %z */ in wrap_strftime() local
1239 if (zreplacement == NULL) { in wrap_strftime()
1243 zreplacement = PyString_FromString(""); in wrap_strftime()
1244 if (zreplacement == NULL) goto Done; in wrap_strftime()
1253 Py_DECREF(zreplacement); in wrap_strftime()
1254 zreplacement = PyString_FromString(buf); in wrap_strftime()
1255 if (zreplacement == NULL) goto Done; in wrap_strftime()
1258 assert(zreplacement != NULL); in wrap_strftime()
1259 ptoappend = PyString_AS_STRING(zreplacement); in wrap_strftime()
1260 ntoappend = PyString_GET_SIZE(zreplacement); in wrap_strftime()
[all …]
/external/python/cpython3/Modules/
D_datetimemodule.c1472 PyObject *zreplacement = NULL; /* py string, replacement for %z */ in wrap_strftime() local
1527 if (zreplacement == NULL) { in wrap_strftime()
1531 zreplacement = PyBytes_FromStringAndSize("", 0); in wrap_strftime()
1532 if (zreplacement == NULL) goto Done; in wrap_strftime()
1541 Py_DECREF(zreplacement); in wrap_strftime()
1542 zreplacement = in wrap_strftime()
1545 if (zreplacement == NULL) in wrap_strftime()
1549 assert(zreplacement != NULL); in wrap_strftime()
1550 ptoappend = PyBytes_AS_STRING(zreplacement); in wrap_strftime()
1551 ntoappend = PyBytes_GET_SIZE(zreplacement); in wrap_strftime()
[all …]