Mercurial > repo
changeset 6500:f2447fa315a9
<Melvar> ` sed -ie \'s/inp[)]$/unicode(inp, locale.getpreferredencoding())).encode(locale.getpreferredencoding())/\' -e \'2s/$/, locale/\' bin/loudly;
author | HackBot |
---|---|
date | Sun, 03 Jan 2016 11:47:13 +0000 |
parents | ad6cc14d2b95 |
children | 6ca43f5f4d7d |
files | bin/loudly bin/loudlye |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/loudly Sun Jan 03 11:03:01 2016 +0000 +++ b/bin/loudly Sun Jan 03 11:47:13 2016 +0000 @@ -1,5 +1,5 @@ #!/usr/bin/env python -import sys, itertools +import sys, itertools, locale inp = len(sys.argv) >= 2 and sys.argv[1] or raw_input() cyc = itertools.cycle(["\00304,09","\00309,04"]) print "".join(cyc.next() + c for c in inp)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/loudlye Sun Jan 03 11:47:13 2016 +0000 @@ -0,0 +1,5 @@ +#!/usr/bin/env python +import sys, itertools +inp = len(sys.argv) >= 2 and sys.argv[1] or raw_input() +cyc = itertools.cycle(["\00304,09","\00309,04"]) +print "".join(cyc.next() + c for c in inp)