summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2004-02-06 04:40:56 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2004-02-06 04:40:56 (GMT)
commit0a83778572276c2ed0c7d3184508a4a1635c2f94 (patch)
tree4a1ef18a02802ad7316b3cb1f261388c42a3f623 /Lib
parent228765b0e115b0534ca76d10c949afcb4bd50cdd (diff)
downloadcpython-0a83778572276c2ed0c7d3184508a4a1635c2f94.zip
cpython-0a83778572276c2ed0c7d3184508a4a1635c2f94.tar.gz
cpython-0a83778572276c2ed0c7d3184508a4a1635c2f94.tar.bz2
Back rev 1.3 out per Raymond's request.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/this.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/this.py b/Lib/this.py
index 29e2960..37754b7 100644
--- a/Lib/this.py
+++ b/Lib/this.py
@@ -20,4 +20,9 @@ Vs gur vzcyrzragngvba vf uneq gb rkcynva, vg'f n onq vqrn.
Vs gur vzcyrzragngvba vf rnfl gb rkcynva, vg znl or n tbbq vqrn.
Anzrfcnprf ner bar ubaxvat terng vqrn -- yrg'f qb zber bs gubfr!"""
-print s.decode('rot_13')
+d = {}
+for c in (65, 97):
+ for i in range(26):
+ d[chr(i+c)] = chr((i+13) % 26 + c)
+
+print "".join([d.get(c, c) for c in s])