#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# return '' . join ( ( 'Model(\n' , ( '  %s\n' % indent ( super ( Model , self ) . __repr__ ( ) , 2 ) ) , ( '  version: %s\n' % self . version ) , ( ( '  root_link: %s\n' % self . root_link . name ) if self . root_link else '' ) , '  links:\n' , ( '    %s' % '\n    ' . join ( [ indent ( str ( l ) , 4 ) for l in self . links ] ) ) , '\n' , '  joints:\n' , ( '    %s' % '\n    ' . join ( [ indent ( str ( j ) , 4 ) for j in self . joints ] ) ) , '\n' , '  submodels:\n' , ( '    %s' % '\n    ' . join ( [ indent ( str ( m ) , 4 ) for m in self . submodels ] ) ) , '\n' , ')' ) )