]> granicus.if.org Git - python/commitdiff
backport r66093 from trunk.
authorGregory P. Smith <greg@mad-scientist.com>
Sun, 31 Aug 2008 16:36:21 +0000 (16:36 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sun, 31 Aug 2008 16:36:21 +0000 (16:36 +0000)
 issue3715: docstring representation of hex escaped string needs to be double
 escaped.

Lib/hashlib.py

index 3d8826fb7f682cfe0f4a7562659caf9df46a19cf..78563b273be6d380c659bea41c33c6870eb3d9f1 100644 (file)
@@ -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: