seveas / python-hpilo

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

Fix: Do not use readfp() #290

Open pauliusm opened 11 months ago

pauliusm commented 11 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.