summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-08-31 16:36:21 +0000
committerGregory P. Smith <greg@mad-scientist.com>2008-08-31 16:36:21 +0000
commit50b1c4920be53f5155fce046617bb700fd02574f (patch)
tree7629764bacd15c4cf19e7916cd5a7f7ac2b91827
parentefbf6fc73eb00f905d75f932949637fdf9b637bb (diff)
downloadcpython-git-50b1c4920be53f5155fce046617bb700fd02574f.tar.gz
backport r66093 from trunk.
issue3715: docstring representation of hex escaped string needs to be double escaped.
-rw-r--r--Lib/hashlib.py2
1 files changed, 1 insertions, 1 deletions
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: