]> granicus.if.org Git - python/commitdiff
_dis_test should be a raw string now that it contains \x escapes.
authorGuido van Rossum <guido@python.org>
Tue, 28 Jan 2003 15:37:13 +0000 (15:37 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 28 Jan 2003 15:37:13 +0000 (15:37 +0000)
Lib/pickletools.py

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