diff --git a/pypureomapi.py b/pypureomapi.py index 58304e9..fd39178 100644 --- a/pypureomapi.py +++ b/pypureomapi.py @@ -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("_", "-") @@ -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: