#NEWLINE# def do_handle( self , input ) : #NEWLINE# #INDENT# match = self . _rx . match ( input ) #NEWLINE# if ( match is not None ) : #NEWLINE# #INDENT# parsed = self . parse_query ( match . group ( 'query' ) ) #NEWLINE# if ( parsed is not None ) : #NEWLINE# #INDENT# result = OrderedDict ( ) #NEWLINE# scrubbed = self . standardize_query ( parsed ) #NEWLINE# result [ 'query' ] = scrubbed [ '$query' ] #NEWLINE# if ( '$orderby' in scrubbed ) : #NEWLINE# #INDENT# result [ 'orderby' ] = result [ '$orderby' ] #NEWLINE# #UNINDENT# result [ 'queryMask' ] = small_json ( scrubbed ) #NEWLINE# result [ 'ns' ] = match . group ( 'ns' ) #NEWLINE# result [ 'stats' ] = self . parse_line_stats ( match . group ( 'stats' ) ) #NEWLINE# result [ 'stats' ] [ 'millis' ] = match . group ( 'query_time' ) #NEWLINE# result [ 'supported' ] = True #NEWLINE# return result #NEWLINE# #UNINDENT# #UNINDENT# return None