def do_commit(self, line):
        """commit <peer>
        eg. commit sw1
        """

        def f(p, args):
            print(p.commit())

        self._request(line, f)
def do_commit ( self , line ) : def f ( p , args ) : print ( p . commit ( ) ) self . _request ( line , f )
commit <peer>
        eg. commit sw1