(path)
return mode
Calculate the mode permissions for a bytecode file.
Calculate the mode permissions for a bytecode file.
Calculate the mode permissions for a bytecode file .
def _calc_mode(path):
    """Calculate the mode permissions for a bytecode file."""
    try:
        mode = _path_stat(path).st_mode
    except OSError:
        mode = 0o666
    # We always ensure write access so we can update cached files
    # later even when the source files are read-only on Windows (#6074)
    mode |= 0o200
    return mode
def _calc_mode ( path ) : try : mode = _path_stat ( path ) . st_mode except OSError : mode = 0o666 # We always ensure write access so we can update cached files # later even when the source files are read-only on Windows (#6074) mode |= 0o200 return mode