Skip to content

Commit

Permalink
Add pylint exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
cygnusb committed May 9, 2022
1 parent 72bbb17 commit 3676054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypureomapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ def __lookup(self, ltype, **kwargs):
ltype_utf = ltype.encode("utf-8")
assert ltype_utf in [b"host", b"lease"]
msg = OmapiMessage.open(ltype_utf)
for k in kwargs:
for k in kwargs: # pylint:disable=consider-using-dict-items
if k == "raw":
continue
_k = k.replace("_", "-")
Expand All @@ -1258,7 +1258,7 @@ def __lookup(self, ltype, **kwargs):
raise OmapiErrorNotFound()
if "raw" in kwargs and kwargs["raw"]:
return dict(response.obj)
res = dict()
res = {}
for k, v in dict(response.obj).items():
_k = k.decode('utf-8')
try:
Expand Down

0 comments on commit 3676054

Please sign in to comment.