From: Gregory P. Smith Date: Sun, 31 Aug 2008 16:34:18 +0000 (+0000) Subject: issue3715: docstring representation of hex escaped string needs to be double X-Git-Tag: v2.6rc1~102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f07e5a9e4b5418829e0b2e907ae5e9b7bb8f90c8;p=thirdparty%2FPython%2Fcpython.git issue3715: docstring representation of hex escaped string needs to be double escaped. --- diff --git a/Lib/hashlib.py b/Lib/hashlib.py index 13124e2c0b2e..a9068a5a3c45 100644 --- a/Lib/hashlib.py +++ b/Lib/hashlib.py @@ -45,7 +45,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: