Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/distutils/command/
Dbuild_scripts.py123 newmode = (oldmode | 0555) & 07777
124 if newmode != oldmode:
126 file, oldmode, newmode)
127 os.chmod(file, newmode)
/external/python/cpython3/Lib/distutils/command/
Dbuild_scripts.py146 newmode = (oldmode | 0o555) & 0o7777
147 if newmode != oldmode:
149 file, oldmode, newmode)
150 os.chmod(file, newmode)
/external/python/cpython2/Objects/
Dfileobject.c326 char *newmode; in open_the_file() local
339 newmode = PyMem_MALLOC(strlen(mode) + 3); in open_the_file()
340 if (!newmode) { in open_the_file()
344 strcpy(newmode, mode); in open_the_file()
346 if (_PyFile_SanitizeMode(newmode)) { in open_the_file()
365 wmode = PyUnicode_DecodeASCII(newmode, strlen(newmode), NULL); in open_the_file()
379 f->f_fp = fopen(name, newmode); in open_the_file()
420 PyMem_FREE(newmode); in open_the_file()