def group_members(self, r, writes, owner):
        if r.isOpen(u'r') == u'r':
            gr = u''.join((u'-%s' % e) for e in r.exceptions
                                       if not e == owner)
        else:
            gr = u'+'.join(e for e in r.exceptions if not e == owner)

        gw = []
        for w in writes:
            if w.isOpen(u'w') == u'w':
                g = u''.join((u'-%s' % e) for e in w.exceptions
                                       if not e == owner)
            else:
                g = u'+'.join(e for e in w.exceptions if not e == owner)
            gw.append(g)
        gw = gw[0] if all(w == gw[0] for w in gw) else u'<variable>'
        if gw == u'':
            gw = u'(world)'
        if gr == u'':
            gr = u'(world)'
        if gw == gr:
            gs = gr
        else:
            gs = u'r:%s  w:%s' % (gr, gw)
        return gs
dataset/ETHPy150Open njr0/fish/fish/ls.py/ExtendedFluidinfo.group_members/original