From: Gregory P. Smith Date: Sun, 31 Aug 2008 16:36:21 +0000 (+0000) Subject: backport r66093 from trunk. X-Git-Tag: v2.5.3c1~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50b1c4920be53f5155fce046617bb700fd02574f;p=python backport r66093 from trunk. issue3715: docstring representation of hex escaped string needs to be double escaped. --- 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: