_dis_test should be a raw string now that it contains \x escapes.

This commit is contained in:
Guido van Rossum 2003-01-28 15:37:13 +00:00
parent d0f7c86a20
commit 03e35327f2
1 changed files with 1 additions and 1 deletions

View File

@ -1899,7 +1899,7 @@ def dis(pickle, out=None, indentlevel=4):
markstack.append(pos) markstack.append(pos)
_dis_test = """ _dis_test = r"""
>>> import pickle >>> import pickle
>>> x = [1, 2, (3, 4), {'abc': u"def"}] >>> x = [1, 2, (3, 4), {'abc': u"def"}]
>>> pkl = pickle.dumps(x, 0) >>> pkl = pickle.dumps(x, 0)