Mercurial > repo
view bin/loudly @ 6484:f76b9b5bd985
<oerjan> ` sed -ie \'s/inp[)]$/unicode(inp, locale.nl_langinfo(locale.CODESET))).encode(locale.nl_langinfo(locale.CODESET))/\' bin/loudly
author | HackBot |
---|---|
date | Sun, 03 Jan 2016 00:32:55 +0000 |
parents | 70055e51bdef |
children | 7a3ae17b7bac |
line wrap: on
line source
#!/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 unicode(inp, locale.nl_langinfo(locale.CODESET))).encode(locale.nl_langinfo(locale.CODESET))