Home
last modified time | relevance | path

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

/external/python/cpython2/Python/
D_warnings.c502 const char *file_str = PyString_AsString(*filename); in setup_context() local
503 if (file_str == NULL || (len < 0 && PyErr_Occurred())) in setup_context()
508 file_str[len-4] == '.' && in setup_context()
509 tolower(file_str[len-3]) == 'p' && in setup_context()
510 tolower(file_str[len-2]) == 'y' && in setup_context()
511 (tolower(file_str[len-1]) == 'c' || in setup_context()
512 tolower(file_str[len-1]) == 'o')) in setup_context()
514 *filename = PyString_FromStringAndSize(file_str, len-1); in setup_context()