def change_file_creation_mask(mask):
 try:
  os.umask(mask)
 except Exception as exc:
  error = DaemonOSEnvironmentError(('Unable to change file creation mask (%(exc)s)' % vars()))
  raise error

def change_file_creation_mask ( mask ) : try : os . umask ( mask ) except Exception as exc : error = DaemonOSEnvironmentError ( ( 'Unable to change file creation mask (%(exc)s)' % vars ( ) ) ) raise error
change the file creation mask for this process .