seveas / python-hpilo

Accessing the HP iLO XML interface from python
https://seveas.github.io/python-hpilo
Other
321 stars 102 forks source link

Fix: Do not use readfp() #290

Open pauliusm opened 8 months ago

pauliusm commented 8 months ago

This fixes errors:

File ...hpilo_fw.py, line 32, in config
    parser.readfp(io.StringIO(conf))
    ^^^^^^^^^^^^^
AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?

because ConfigParser's readfp() is deprecated.