#NEWLINE# @ property #NEWLINE# def busses( self ) : #NEWLINE# #INDENT# apiresp = self . api . vehicles ( rt = self . number ) [ 'vehicle' ] #NEWLINE# if ( type ( busobj ) is list ) : #NEWLINE# #INDENT# for busdict in apiresp : #NEWLINE# #INDENT# busobj = Bus . fromapi ( self . api , busdict ) #NEWLINE# busobj . route = self #NEWLINE# ( yield busobj ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# busobj = Bus . fromapi ( self . api , apiresp ) #NEWLINE# busobj . route = self #NEWLINE# ( yield busobj )