Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Do not use readfp() #290

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 4.4.4, 2023-12-12

* Fixes configparser `readfp()` depreciation

Version 4.4.3, 2021-01-16

* Fixes compatibility with OpenSSL v1.1.0+
Expand Down
2 changes: 1 addition & 1 deletion devtools/python-hpilo.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Summary: Accessing HP iLO interfaces from python
Name: python-hpilo
Version: 4.4.3
Version: 4.4.4
Release: 1%{?dist}
Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
License: GPL/APL
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
# built documents.
#
# The short X.Y version.
version = '4.4.3'
version = '4.4.4'
# The full version, including alpha/beta/rc tags.
release = '4.4.3'
release = '4.4.4'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions hpilo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# (c) 2011-2021 Dennis Kaarsemaker <[email protected]>
# see COPYING for license details

__version__ = "4.4.3"
__version__ = "4.4.4"

import codecs
import io
Expand Down Expand Up @@ -562,7 +562,7 @@ def _attempt_to_fix_broken_xml(self, data):
# Remove binary 01 in xml output. This bug was seen on a faulty PSU.
if '\x01' in data:
data = data.replace('\x01', '')

# Quite a few unescaped quotation mark bugs keep appearing. Let's try
# to fix up the XML by replacing the last occurrence of a quotation mark
# *before* the position of the error.
Expand Down
2 changes: 1 addition & 1 deletion hpilo_fw.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def config(mirror=None):
conf = _download('https://seveas.github.io/python-hpilo/firmware.conf')
conf = conf.decode('ascii')
parser = ConfigParser.ConfigParser()
parser.readfp(io.StringIO(conf))
parser.read_file(io.StringIO(conf))
_config = {}
for section in parser.sections():
_config[section] = {}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup

setup(name = "python-hpilo",
version = "4.4.3",
version = "4.4.4",
author = "Dennis Kaarsemaker",
author_email = "[email protected]",
url = "http://github.com/seveas/python-hpilo",
Expand Down