src/contacts.py
def name_for_email(self, email):
        """Return name associated with email or `None`."""
        key = email.lower()
        contact = self.contacts.get('contacts', {}).get(key)

        if contact:
            log.debug('%r belongs to %r', email, contact['name'])
            return contact['name']

        return None
Return name associated with email or `None`.
Return name associated with email or `None`.
Return name associated with email or ` None ` .
def name_for_email(self, email):
        key = email.lower()
        contact = self.contacts.get('contacts', {}).get(key)
        if contact:
            log.debug('%r belongs to %r', email, contact['name'])
            return contact['name']
        return None
def name_for_email ( self , email ) : key = email . lower ( ) contact = self . contacts . get ( 'contacts' , { } ) . get ( key ) if contact : log . debug ( '%r belongs to %r' , email , contact [ 'name' ] ) return contact [ 'name' ] return None
Return name associated with email or `None`.
Return name associated with email or ` None ` .
"""Return name associated with email or `None`."""
self
email