summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-08-31 16:34:18 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-08-31 16:34:18 (GMT)
commitf07e5a9e4b5418829e0b2e907ae5e9b7bb8f90c8 (patch)
treee691553fd26b1ea279b117ee2c38dc4e1b22a0eb
parent51eb7a9daa77949ffa30c12d8b794d801603ea92 (diff)
downloadcpython-f07e5a9e4b5418829e0b2e907ae5e9b7bb8f90c8.zip
cpython-f07e5a9e4b5418829e0b2e907ae5e9b7bb8f90c8.tar.gz
cpython-f07e5a9e4b5418829e0b2e907ae5e9b7bb8f90c8.tar.bz2
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 13124e2..a9068a5 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: