Fix timeline logging on Python 2.

This commit is contained in:
Pavel Minaev 2019-07-12 18:34:09 -07:00 committed by Pavel Minaev
parent c511e98b02
commit 22f25c8d04

View file

@ -639,10 +639,10 @@ def _describe_message(message_type, *items):
s = "{..., " + s[1:]
# Used by some.dict.containing to inject ... as needed.
s = s.replace(r'"\u0002...": "...\u0003"', "...")
s = s.replace('"\\u0002...": "...\\u0003"', "...")
# Used by some.* and by Event/Request/Response expectations below.
s = s.replace(r'"\u0002', '')
s = s.replace(r'\u0003"', '')
s = s.replace('"\\u0002', '')
s = s.replace('\\u0003"', '')
if len(s) <= 70:
break