def ns_perms_string(self, ns, group=False):
        h = self.get_ns_perms_hash(ns)
        for k in h:
            if (int, long) in type(h[k]):
                return ' (denied) '
        s = []
        owner = ns.split(u'/')[0]
        r = h[u'read']
        control = h[u'control']
        writes = (h[u'create'], h[u'metadata'], h[u'delete'])
        ownerRead = r.accessible(u'r', owner)
        ownerWrites = [w.accessible(u'w', owner) for w in writes]
        worldRead = r.isOpen(u'r')
        worldWrites = [w.isOpen(u'w') for w in writes]
        ownerWrite = write_status(ownerWrites)
        worldWrite = write_status(worldWrites)
        ownerControl = control.accessible(u'c', owner)
        worldControl = control.isOpen(u'c')
        groupRead = self.group_perm(u'r', r, owner)
        groupWrite = combined_status([self.group_perm(u'w', w, owner)
                                      for w in writes])
        groupControl = self.group_perm(u'c', control, owner)

        ps = u'n%s%s%s%s%s%s%s%s%s' % (ownerRead, ownerWrite, ownerControl,
                                       groupRead, groupWrite, groupControl,
                                       worldRead, worldWrite, worldControl)
        if group:
            return ps + u'   ' + self.group_members(r, writes, owner)
        else:
            return ps
dataset/ETHPy150Open njr0/fish/fish/ls.py/ExtendedFluidinfo.ns_perms_string/swapped operands of `in`