def _gen_addr(entry):
        """Generates a vCard Address object"""
        return Address(street=entry.get('address', ''),
                       extended=entry.get('address2', ''),
                       city=entry.get('city', ''),
                       region=entry.get('state', ''),
                       code=entry.get('zip', ''),
                       country=entry.get('country', ''))
def _gen_addr ( entry ) : return Address ( street = entry . get ( 'address' , '' ) , extended = entry . get ( 'address2' , '' ) , city = entry . get ( 'city' , '' ) , region = entry . get ( 'state' , '' ) , code = entry . get ( 'zip' , '' ) , country = entry . get ( 'country' , '' ) )
Generates a vCard Address object