khard/address_book.py
def _search_names(self, query):
        """Search in the name filed for contacts matching query.

        :param query: the query to search for
        :type query: str
        :yields: all found contacts
        :rtype: generator(carddav_object.CarddavObject)

        """
        regexp = re.compile(query, re.IGNORECASE | re.DOTALL)
        for contact in self.contacts.values():
            # only search in contact name
            if regexp.search(contact.get_full_name()) is not None:
                yield contact
def _search_names(self, query):
        regexp = re.compile(query, re.IGNORECASE | re.DOTALL)
        for contact in self.contacts.values():
            # only search in contact name
            if regexp.search(contact.get_full_name()) is not None:
                yield contact
def _search_names ( self , query ) : regexp = re . compile ( query , re . IGNORECASE | re . DOTALL ) for contact in self . contacts . values ( ) : # only search in contact name if regexp . search ( contact . get_full_name ( ) ) is not None : yield contact
Search in the name filed for contacts matching query.

        :param query: the query to search for
        :type query: str
        :yields: all found contacts
        :rtype: generator(carddav_object.CarddavObject)
Search in the name filed for contacts matching query .