Searched refs:newmode (Results 1 – 2 of 2) sorted by relevance
123 newmode = (oldmode | 0555) & 07777124 if newmode != oldmode:126 file, oldmode, newmode)127 os.chmod(file, newmode)
321 char *newmode; in open_the_file() local334 newmode = PyMem_MALLOC(strlen(mode) + 3); in open_the_file()335 if (!newmode) { in open_the_file()339 strcpy(newmode, mode); in open_the_file()341 if (_PyFile_SanitizeMode(newmode)) { in open_the_file()360 wmode = PyUnicode_DecodeASCII(newmode, strlen(newmode), NULL); in open_the_file()374 f->f_fp = fopen(name, newmode); in open_the_file()415 PyMem_FREE(newmode); in open_the_file()