import sys
import time
+
+red="\e[1;31m"
+nocolor="\e[0m"
+
try:
while True:
l = sys.stdin.readline()
if l != "":
- sys.stdout.write(urllib.unquote(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