#NEWLINE# def get_status( interface ) : #NEWLINE# #INDENT# interface = iwlib . get_iwconfig ( interface ) #NEWLINE# if ( 'stats' not in quality ) : #NEWLINE# #INDENT# return ( None , None ) #NEWLINE# #UNINDENT# quality = interface [ 'stats' ] [ 'quality' ] #NEWLINE# essid = bytes ( interface [ 'ESSID' ] ) . decode ( ) #NEWLINE# return ( essid , quality )