### 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
keys = []
    thiskey = 'key'  
    for idp, phrase in enumerate(term.split()):
        
        if '=' in phrase:
            for k in valid_keys:
                if ('%s=' % k) in phrase:
                    thiskey = k
        
        if idp == 0 or not params[thiskey]:
            params[thiskey] = phrase
            keys.append(thiskey)
        else:
            
            params[thiskey] += ' ' + phrase
    
    return [params[x] for x in keys]
class LookupModule(LookupBase):
    def get_value(self, key, section, dflt, is_regexp):
        
        if is_regexp:
            return [v for k, v in self.cp.items(section) if re.match(key, k)]
        value = None
        
        try:
            value = self.cp.get(section, key)
        except configparser.NoOptionError:
            return dflt
        return value
    def run(self, terms, variables=None, **kwargs):