Home
last modified time | relevance | path

Searched refs:newmode (Results 1 – 2 of 2) 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/cpython2/Objects/
Dfileobject.c321 char *newmode; in open_the_file() local
334 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()