#NEWLINE# def _unauthorized( self , resp ) : #NEWLINE# #INDENT# status401 = ( resp . status_code == 401 ) #NEWLINE# status500 = ( ( resp . status_code == 500 ) and ( '(HTTP 401)' in resp . content ) ) #NEWLINE# return ( self or status500 )