<s> import sys <EOL> def tb_print_list ( extracted_list , filename , normal = sys . stdout , <EOL> highlight = sys . stderr ) : <EOL> """<STR_LIT>""" <EOL> for fname , lineno , name , line in extracted_list : <EOL> f = highlight if fname == filename else normal <EOL> if name == '<STR_LIT>' : <EOL> f . write ( '<STR_LIT>' % ( fname , lineno ) ) <EOL> else : <EOL> f . write ( '<STR_LIT>' % ( fname , lineno , name ) ) <EOL> if line : <EOL> f . write ( '<STR_LIT>' % line . strip ( ) ) </s>
