#NEWLINE# def human_sid( symbol ) : #NEWLINE# #INDENT# sid = remote . lookup_symbol ( symbol ) #NEWLINE# if len ( sid ) : #NEWLINE# #INDENT# human_fmt = '{} {} - {} ({})' . format ( symbol [ 0 ] [ 'name' ] , sid [ 0 ] [ 'typeDisp' ] , sid [ 0 ] [ 'exchDisp' ] , sid [ 0 ] [ 'symbol' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# human_fmt = symbol #NEWLINE# #UNINDENT# return human_fmt