summaryrefslogtreecommitdiffstats
path: root/Doc/lib/librotor.tex
diff options
context:
space:
mode:
authorKa-Ping Yee <ping@zesty.ca>2001-01-24 17:19:08 (GMT)
committerKa-Ping Yee <ping@zesty.ca>2001-01-24 17:19:08 (GMT)
commitfa004ad36c86f4af406cfa3a84ec8b6cb391e6dd (patch)
tree61544d6bc2f118d4187cfc4887711f728d0fb7cf /Doc/lib/librotor.tex
parent726b78ecb8660278399abaf36f98dec56ecf1271 (diff)
downloadcpython-fa004ad36c86f4af406cfa3a84ec8b6cb391e6dd.zip
cpython-fa004ad36c86f4af406cfa3a84ec8b6cb391e6dd.tar.gz
cpython-fa004ad36c86f4af406cfa3a84ec8b6cb391e6dd.tar.bz2
Show '\011', '\012', and '\015' as '\t', '\n', '\r' in strings.
Switch from octal escapes to hex escapes for other nonprintable characters.
Diffstat (limited to 'Doc/lib/librotor.tex')
-rw-r--r--Doc/lib/librotor.tex14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/lib/librotor.tex b/Doc/lib/librotor.tex
index ba7c402..e1db8ef 100644
--- a/Doc/lib/librotor.tex
+++ b/Doc/lib/librotor.tex
@@ -68,17 +68,17 @@ An example usage:
>>> import rotor
>>> rt = rotor.newrotor('key', 12)
>>> rt.encrypt('bar')
-'\2534\363'
+'\xab4\xf3'
>>> rt.encryptmore('bar')
-'\357\375$'
+'\xef\xfd$'
>>> rt.encrypt('bar')
-'\2534\363'
->>> rt.decrypt('\2534\363')
+'\xab4\xf3'
+>>> rt.decrypt('\xab4\xf3')
'bar'
->>> rt.decryptmore('\357\375$')
+>>> rt.decryptmore('\xef\xfd$')
'bar'
->>> rt.decrypt('\357\375$')
-'l(\315'
+>>> rt.decrypt('\xef\xfd$')
+'l(\xcd'
>>> del rt
\end{verbatim}