#NEWLINE# def GetUserTimeline( self , **kwargs ) : #NEWLINE# #INDENT# count = ( kwargs . get ( 'count' ) or 200 ) #NEWLINE# since_id = kwargs . get ( 'since_id' ) #NEWLINE# if ( since_id is not None ) : #NEWLINE# #INDENT# since_id = int ( since_id ) #NEWLINE# #UNINDENT# max_id = kwargs . get ( 'max_id' ) #NEWLINE# if ( max_id is not None ) : #NEWLINE# #INDENT# max_id = int ( max_id ) #NEWLINE# #UNINDENT# _start = 0 #NEWLINE# _end = len ( self . _statuses ) #NEWLINE# if ( max_id is not None ) : #NEWLINE# #INDENT# if ( self . _statuses [ ( - 1 ) ] [ 0 ] > max_id ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# for ( i , status ) in enumerate ( self . _statuses ) : #NEWLINE# #INDENT# if ( status [ 0 ] <= max_id ) : #NEWLINE# #INDENT# _start = i #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( since_id is not None ) : #NEWLINE# #INDENT# if ( self . _statuses [ 0 ] [ 0 ] <= since_id ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# if ( max_id is not None ) : #NEWLINE# #INDENT# if ( since_id > max_id ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# #UNINDENT# for ( i , status ) in enumerate ( self . _statuses ) : #NEWLINE# #INDENT# if ( status [ 0 ] <= since_id ) : #NEWLINE# #INDENT# _end = ( i - 1 ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# statuses = [ self . Status ( id = s [ 0 ] , media = s [ 1 ] ) for s in self . _statuses [ _start : ( _end + 1 ) ] ] #NEWLINE# return statuses [ : count ]