Skip to content

Commit

Permalink
saferepr: Should not display Iterable/Mapping as list; delegate to ._…
Browse files Browse the repository at this point in the history
…_repr__
  • Loading branch information
ask committed Dec 6, 2016
1 parent ccce56d commit d84cf8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions celery/utils/saferepr.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ def reprstream(stack, seen=None, maxlevels=3, level=0, isinstance=isinstance):
LIT_TUPLE_START,
LIT_TUPLE_END_SV if len(val) == 1 else LIT_TUPLE_END,
_chainlist(val))
elif isinstance(val, Mapping):
elif isinstance(val, dict):
lit_start, lit_end, val = (
LIT_DICT_START, LIT_DICT_END, _chaindict(val))
elif isinstance(val, Iterable):
elif isinstance(val, list):
lit_start, lit_end, val = (
LIT_LIST_START, LIT_LIST_END, _chainlist(val))
else:
Expand Down

0 comments on commit d84cf8f

Please sign in to comment.