Skip to content

Commit

Permalink
Update eapilib.py
Browse files Browse the repository at this point in the history
self-approving: non-functional, only syntactic changes to keep flake8 happier.
  • Loading branch information
dlyssenko committed Oct 7, 2022
1 parent e3391b1 commit 1ce58da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyeapi/eapilib.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def _sanitize_request( self, data ):
try:
data_json = json.loads( data )
match = self._find_sub_json(
data_json, {'cmd': 'enable', 'input':()} )
data_json, {'cmd': 'enable', 'input': ()} )
if match:
match.entry[ match.idx ][ 'input' ] = '<removed>'
return json.dumps( data_json )
Expand Down Expand Up @@ -610,7 +610,7 @@ def _parse_error_message(self, message):
err = []
for dct in message['error']['data']:
err.extend(
['%s: %s' % ( k, repr(v) ) for k,v in dct.items()] )
['%s: %s' % ( k, repr(v) ) for k, v in dct.items()] )
err = ', '.join(err)
out = message['error']['data']

Expand Down

0 comments on commit 1ce58da

Please sign in to comment.