original_docstring: Call one of the three match fnc's with appropriate args.
          See Rules.match_? function doc
          
docstring: Call one of the three match fnc's with appropriate args.
docstring_tokens: Call one of the three match fnc ' s with appropriate args .
code: def match(self, fnc, *args, **kwargs):
          """Call one of the three match fnc's with appropriate args.
          See Rules.match_? function doc
          """
          self._process_externals(kwargs.get('externals', {}))
          callback = kwargs.get('callback', None)
          if callback is not None:
              if not hasattr(callback, '__call__'):
                  raise TypeError("callback object not a callable")
          self._matches = {}
          self._callback_error = None
          self._match_callback = callback
          args = list(args) + [self._context, self._callback, None]
          try:
              fnc(*args)
          except YaraCallbackError:
              if self._callback_error is None:
                  raise YaraCallbackError("Unkown error occurred")
              else:
                  msg = "Error in callback handler:\n%s" % \
                          self._callback_error
                  raise YaraCallbackError(msg)
          finally:
              yr_free_matches(self._context)
          return self._matches
code_tokens: def match ( self , fnc , * args , ** kwargs ) : self . _process_externals ( kwargs . get ( 'externals' , { } ) ) callback = kwargs . get ( 'callback' , None ) if callback is not None : if not hasattr ( callback , '__call__' ) : raise TypeError ( "callback object not a callable" ) self . _matches = { } self . _callback_error = None self . _match_callback = callback args = list ( args ) + [ self . _context , self . _callback , None ] try : fnc ( * args ) except YaraCallbackError : if self . _callback_error is None : raise YaraCallbackError ( "Unkown error occurred" ) else : msg = "Error in callback handler:\n%s" % self . _callback_error raise YaraCallbackError ( msg ) finally : yr_free_matches ( self . _context ) return self . _matches
short_docstring: Call one of the three match fnc's with appropriate args.
short_docstring_tokens: Call one of the three match fnc ' s with appropriate args .
comment: """Call one of the three match fnc's with appropriate args.
          See Rules.match_? function doc
          """