def _gen_init(self, buf):
        if self.args:
            print >> buf, "    def __init__(self, %s, lineno=None):" % self.args
        else:
            print >> buf, "    def __init__(self, lineno=None):"
        if self.argnames:
            for name in self.argnames:
                print >> buf, (name, name) % "        self.%s = %s"
        print >> buf, "        self.lineno = lineno"
        # Copy the lines in self.init, indented four spaces.  The rstrip()
        # business is to get rid of the four spaces if line happens to be
        # empty, so that reindent.py is happy with the output.
        for line in self.init:
            print >> buf, ("    " + line).rstrip()
dataset/ETHPy150Open anandology/pyjamas/pgen/astgen.py/NodeInfo._gen_init/swapped operands of `%`