From 50b1c4920be53f5155fce046617bb700fd02574f Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sun, 31 Aug 2008 16:36:21 +0000 Subject: [PATCH] backport r66093 from trunk. issue3715: docstring representation of hex escaped string needs to be double escaped. --- Lib/hashlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/hashlib.py b/Lib/hashlib.py index 3d8826fb7f..78563b273b 100644 --- a/Lib/hashlib.py +++ b/Lib/hashlib.py @@ -42,7 +42,7 @@ spammish repetition': >>> m.update("Nobody inspects") >>> m.update(" the spammish repetition") >>> m.digest() - '\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9' + '\\xbbd\\x9c\\x83\\xdd\\x1e\\xa5\\xc9\\xd9\\xde\\xc9\\xa1\\x8d\\xf0\\xff\\xe9' More condensed: -- 2.50.0