Skip to content

Commit

Permalink
Update synchronizer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzhang authored Dec 4, 2023
1 parent e29e4ff commit 77ffd03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synchronicity/synchronizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,11 @@ def _translate_scalar_out(self, obj, interface):
return obj

def _recurse_map(self, mapper, obj):
if type(obj) == list:
if isinstance(obj, list):
return list(self._recurse_map(mapper, item) for item in obj)
elif type(obj) == tuple:
elif isinstance(obj, tuple):
return tuple(self._recurse_map(mapper, item) for item in obj)
elif type(obj) == dict:
elif isinstance(obj, dict):
return dict((key, self._recurse_map(mapper, item)) for key, item in obj.items())
else:
return mapper(obj)
Expand Down

0 comments on commit 77ffd03

Please sign in to comment.