Searched refs:encoding_attr (Results 1 – 1 of 1) sorted by relevance
1829 PyObject * encoding_attr; in init_sys_streams() local1951 encoding_attr = PyObject_GetAttrString(std, "encoding"); in init_sys_streams()1952 if (encoding_attr != NULL) { in init_sys_streams()1953 const char *std_encoding = PyUnicode_AsUTF8(encoding_attr); in init_sys_streams()1958 Py_DECREF(encoding_attr); in init_sys_streams()