#NEWLINE# def _get_key( self , request , type ) : #NEWLINE# #INDENT# key = ( urlparse_cached ( request ) . hostname or '' ) #NEWLINE# if ( type == 'ip' ) : #NEWLINE# #INDENT# key = dnscache . get ( key , key ) #NEWLINE# #UNINDENT# return key