#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# kilometers = kwargs . pop ( 'kilometers' , 0 ) #NEWLINE# if ( len ( args ) == 1 ) : #NEWLINE# #INDENT# kilometers += args [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( args ) > 1 ) : #NEWLINE# #INDENT# for ( a , b ) in util . pairwise ( args ) : #NEWLINE# #INDENT# kilometers += self . measure ( a , b ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# kilometers += units . kilometers ( ** kwargs ) #NEWLINE# self . __kilometers = kilometers