plint

French poetry validator (local mirror of https://gitlab.com/a3nm/plint)
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

filter_irc.py (195B)


      1 #!/usr/bin/python3 -u
      2 
      3 import sys
      4 
      5 sys.stdin = sys.stdin.detach()
      6 while True:
      7   l = sys.stdin.readline()
      8   if not l:
      9     break
     10   l = l.decode('utf8').strip()
     11   print(''.join((l.split(">"))[1:]))