def cg_str(self):
    def _cg_str(self):
        if self.link:
            yield '" '
        yield 'hi '
        if self.cleared:
            yield 'clear '
        yield self.name
        yield ' '
        if self.link:
            yield 'links to %s' % self.link
        else:
            for k,v in self._asdict().iteritems():
                if ('name', 'cleared', 'link') in k:
                    continue
                if v is not None:
                    yield ' %s=%s' % (k,v)
    return str.join('', _cg_str(self))
dataset/ETHPy150Open westurner/vim2vim/vim2vim/vim2vim.py/cg_str/swapped operands of `in`