### Summary

lookup function fails - lookup('ansible.builtin.ini', ...)

Ansible ini is using the function 'readfp'  on Configmap this function was [removed ](https://issues.apache.org/jira/browse/SVN-4899#:~:text=Description,3.12%20(due%20October%202023).) on python 3.12


### Issue Type

Bug Report

### Component Name

ansible.builtin.ini

### Ansible Version

```console
$ ansible --version
ansible [core 2.15.3]
  config file = /home/liss/webnews/pyramid-rt4/ansible/ansible.cfg
  configured module search path = ['/home/liss/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/liss/.local/lib/python3.12/site-packages/ansible
  ansible collection location = /home/liss/webnews/pyramid-rt4/ansible/collections
  executable location = /home/liss/.local/bin/ansible
  python version = 3.12.0rc1 (main, Aug  6 2023, 17:56:34) [GCC 9.4.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True
```


### Configuration

```console
# if using a version older than ansible-core 2.12 you should omit the '-t all'
$ ansible-config dump --only-changed -t all
```


### OS / Environment

"Ubuntu 20.04.6 LTS" on WSL

### Steps to Reproduce

- name:
  set_fact:
    planning_service_monitor_consul_token: "{{ lookup('ansible.builtin.ini', 'consul_token', file='/tmp/pyr_tmp', section='Consul', allow_no_value=True) }}"


### Expected Results

Success

### Actual Results

```console
fatal: [localhost]: FAILED! =>
  msg: 'An unhandled exception occurred while running the lookup plugin ''ansible.builtin.ini''. Error was a <class ''AttributeError''>, original message: ''ConfigParser'' object has no attribute ''readfp''. ''ConfigParser'' object has no attribute ''readfp'''
```


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
self.set_options(var_options=variables, direct=kwargs)
        paramvals = self.get_options()
        self.cp = configparser.ConfigParser(allow_no_value=paramvals.get('allow_no_value', paramvals.get('allow_none')))
        if paramvals['case_sensitive']:
            self.cp.optionxform = to_native
        ret = []
        for term in terms:
            key = term
            
            if '=' in term or ' ' in term.strip():
                self._deprecate_inline_kv()
                params = _parse_params(term, paramvals)
                try:
                    updated_key = False
                    for param in params:
                        if '=' in param:
                            name, value = param.split('=')
                            if name not in paramvals:
                                raise AnsibleLookupError('%s is not a valid option.' % name)
                            paramvals[name] = value
                        elif key == term:
                            
                            key = param
                            updated_key = True
                except ValueError as e:
                    
                    raise AnsibleLookupError("Could not use '%s' from '%s': %s" % (param, params, to_native(e)), orig_exc=e)
                if not updated_key:
                    raise AnsibleOptionsError("No key to lookup was provided as first term with in string inline options: %s" % term)