#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# representation = '' #NEWLINE# for attribute in ( 'waypoints' , 'routes' , 'tracks' ) : #NEWLINE# #INDENT# value = getattr ( self , attribute ) #NEWLINE# if value : #NEWLINE# #INDENT# representation += ( '%s%s=%s' % ( ( ', ' if representation else '' ) , attribute , repr ( value ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ( 'GPX(%s)' % representation )