code: def _escape_query_term(self, term):
          
          term = term.replace('\\', '\\\\')
          for c in RESERVED_CHAR_LIST:
              term = term.replace(c, r'\{}'.format(c))
          return term
docs: Escape a query term for inclusion in a query.
  
          - Also see: prepare_query_term().