+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+"""Piper dedans un flux avec des %20 et autres cochonneries,
+ il ressortira lisible."""
+
+__author__ = "Vincent Le Gallic <legallic@crans.org>"
+
+__license__ = "WTFPL"
+
+import urllib
+import sys
+import time
+
+
+red="\e[1;31m"
+nocolor="\e[0m"
+
+try:
+ while True:
+ l = sys.stdin.readline()
+ if l != "":
+ l = urllib.unquote(l)
+ if "--color" in sys.argv:
+ l = l.replace('"PUT ', '"%sPUT%s ' % (red, nocolor))
+ sys.stdout.write(l)
+except KeyboardInterrupt:
+ pass