Skip to content

Commit

Permalink
Merge fb7e745 into fe1f18f
Browse files Browse the repository at this point in the history
  • Loading branch information
hthiery committed Oct 6, 2018
2 parents fe1f18f + fb7e745 commit 36c22ac
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
install:
- pip install python-coveralls
- pip install coverage
Expand Down
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pure Python IPMI Library
========================

|BuildStatus| |PyPiVersion| |Coveralls| |CodeClimate| |Codacy|
|BuildStatus| |PyPiVersion| |PyPiPythonVersions| |Coveralls| |CodeClimate| |Codacy|

Features
--------
Expand Down Expand Up @@ -132,6 +132,9 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
:target: https://travis-ci.org/kontron/python-ipmi
.. |PyPiVersion| image:: https://badge.fury.io/py/python-ipmi.svg
:target: http://badge.fury.io/py/python-ipmi
.. |PyPiPythonVersions| image:: https://img.shields.io/pypi/pyversions/python-ipmi.svg
:alt: Python versions
:target: http://badge.fury.io/py/python-ipmi
.. |CodeClimate| image:: https://codeclimate.com/github/kontron/python-ipmi/badges/gpa.svg
:target: http://codeclimate.com/github/kontron/python-ipmi
.. |Coveralls| image:: https://coveralls.io/repos/github/kontron/python-ipmi/badge.svg?branch=master
Expand Down
12 changes: 6 additions & 6 deletions pyipmi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ def set_routing(self, routing):
self.routing = [Routing(*route) for route in routing]

def __str__(self):
s = 'Target: IPMB: 0x%02x\n' % self.ipmb_address
string = 'Target: IPMB: 0x%02x\n' % self.ipmb_address
if self.routing:
for r in self.routing:
s += ' %s\n' % r
return s
for route in self.routing:
string += ' %s\n' % route
return string


class Ipmi(bmc.Bmc, chassis.Chassis, fru.Fru, picmg.Picmg, hpm.Hpm,
Expand Down Expand Up @@ -199,8 +199,8 @@ def send_message(self, req, retry=3):
def send_message_with_name(self, name, *args, **kwargs):
req = create_request_by_name(name)

for k, v in kwargs.items():
setattr(req, k, v)
for key, value in kwargs.items():
setattr(req, key, value)

rsp = self.send_message(req)
check_completion_code(rsp.completion_code)
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
],
entry_points={
Expand Down

0 comments on commit 36c22ac

Please sign in to comment.