()
return mask
Get the current umask which involves having to set it temporarily.
Get the current umask which involves having to set it temporarily.
Get the current umask which involves having to set it temporarily .
def current_umask():
    """Get the current umask which involves having to set it temporarily."""
    mask = os.umask(0)
    os.umask(mask)
    return mask
def current_umask ( ) : mask = os . umask ( 0 ) os . umask ( mask ) return mask