changeset 5941:b120cb917932

<tswett> sed -i \'s/raw_input()/raw_input() or sys.argv[0]/\' bin/loudly
author HackBot
date Sat, 29 Aug 2015 22:23:23 +0000
parents 255c7d6f83a4
children 2c0920181b85
files bin/loudly
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/loudly	Sat Aug 29 00:33:30 2015 +0000
+++ b/bin/loudly	Sat Aug 29 22:23:23 2015 +0000
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
 import itertools
-inp = raw_input()
+inp = raw_input() or sys.argv[0]
 cyc = itertools.cycle(["\00304,09","\00309,04"])
 print "".join(cyc.next() + c for c in inp)