changeset 3868:5909a6756b89

<oerjan> sed -i -e \'1aimport sys\' -e \'s/print/sys.write/\' bin/CaT #Let\'s see how much i messed this up
author HackBot
date Fri, 04 Oct 2013 22:39:05 +0000
parents 5804b6bdedce
children 973327ada3a3
files bin/CaT
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/CaT	Fri Oct 04 21:19:12 2013 +0000
+++ b/bin/CaT	Fri Oct 04 22:39:05 2013 +0000
@@ -1,2 +1,3 @@
 #!/usr/bin/env python
-print (lambda s: "".join([(s[i].upper() if i%2==0 else s[i].lower()) for i in range(len(s)) ]))(open("/dev/stdin").read())
+import sys
+sys.write (lambda s: "".join([(s[i].upper() if i%2==0 else s[i].lower()) for i in range(len(s)) ]))(open("/dev/stdin").read())