Searched refs:encoding_attr (Results 1 – 1 of 1) sorted by relevance
2320 PyObject * encoding_attr; in init_sys_streams() local2378 encoding_attr = PyObject_GetAttrString(std, "encoding"); in init_sys_streams()2379 if (encoding_attr != NULL) { in init_sys_streams()2380 const char *std_encoding = PyUnicode_AsUTF8(encoding_attr); in init_sys_streams()2385 Py_DECREF(encoding_attr); in init_sys_streams()