def _get_dacl(path, objectType):
 try:
  dacl = win32security.GetNamedSecurityInfo(path, objectType, win32security.DACL_SECURITY_INFORMATION).GetSecurityDescriptorDacl()
 except Exception:
  dacl = None
 return dacl

def _get_dacl ( path , objectType ) : try : dacl = win32security . GetNamedSecurityInfo ( path , objectType , win32security . DACL_SECURITY_INFORMATION ) . GetSecurityDescriptorDacl ( ) except Exception : dacl = None return dacl
gets the dacl of a path .