def conversation():
 t = Twitter(auth=authen())
 try:
  id = int(g['stuff'].split()[0])
 except:
  printNicely(red("Sorry I can't understand."))
  return
 tid = c['tweet_dict'][id]
 tweet = t.statuses.show(id=tid)
 limit = c['CONVERSATION_MAX']
 thread_ref = []
 thread_ref.append(tweet)
 prev_tid = tweet['in_reply_to_status_id']
 while (prev_tid and limit):
  limit -= 1
  tweet = t.statuses.show(id=prev_tid)
  prev_tid = tweet['in_reply_to_status_id']
  thread_ref.append(tweet)
 for tweet in reversed(thread_ref):
  draw(t=tweet)
 printNicely('')

def conversation ( ) : t = Twitter ( auth = authen ( ) ) try : id = int ( g [ 'stuff' ] . split ( ) [ 0 ] ) except : printNicely ( red ( "Sorry I can't understand." ) ) return tid = c [ 'tweet_dict' ] [ id ] tweet = t . statuses . show ( id = tid ) limit = c [ 'CONVERSATION_MAX' ] thread_ref = [ ] thread_ref . append ( tweet ) prev_tid = tweet [ 'in_reply_to_status_id' ] while ( prev_tid and limit ) : limit -= 1 tweet = t . statuses . show ( id = prev_tid ) prev_tid = tweet [ 'in_reply_to_status_id' ] thread_ref . append ( tweet ) for tweet in reversed ( thread_ref ) : draw ( t = tweet ) printNicely ( '' )
conversation view .