Skip to content

Commit

Permalink
cleanup: pythonise type conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
sammyhori committed Oct 1, 2024
1 parent d8d3169 commit aa7f568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seedemu/services/KuboService/KuboUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, src=None, **kwargs):
elif isinstance(src, Mapping):
newMapping = {}
for key, value in src.items():
if type(value) == dict:
if type(value) is dict:
newMapping[key] = DottedDict(value)
else:
newMapping[key] = value
Expand All @@ -35,7 +35,7 @@ def __init__(self, src=None, **kwargs):
else:
newIterable = []
for key, value in src:
if type(value) == dict:
if type(value) is dict:
newIterable.append((key, DottedDict(value)))
else:
newIterable.append((key, value))
Expand Down

0 comments on commit aa7f568

Please sign in to comment.