Skip to content

Commit

Permalink
simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
konr committed Aug 24, 2018
1 parent db832f6 commit 356e4a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions edn_format/edn_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ def udump(obj,
return unicode_escape(obj)
elif isinstance(obj, tuple):
return '({})'.format(seq(obj, **kwargs))
elif isinstance(obj, list):
return '[{}]'.format(seq(obj, **kwargs))
elif isinstance(obj, ImmutableList):
elif isinstance(obj, (list, ImmutableList)):
return '[{}]'.format(seq(obj, **kwargs))
elif isinstance(obj, set) or isinstance(obj, frozenset):
if sort_sets:
Expand Down

0 comments on commit 356e4a6

Please sign in to comment.