X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;ds=sidebyside;f=percent_decode.py;fp=percent_decode.py;h=0000000000000000000000000000000000000000;hb=8721c7c2bbdd6c692f168bdce241ccdc7dc4cb59;hp=8fc51c9ef58e1f2c6ec9c64656522e9f74fab931;hpb=6fcc8a56ce98cb00472ab54c892aa712a5de1b54;p=scripts-20-100.git diff --git a/percent_decode.py b/percent_decode.py deleted file mode 100755 index 8fc51c9..0000000 --- a/percent_decode.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -"""Piper dedans un flux avec des %20 et autres cochonneries, - il ressortira lisible.""" - -__author__ = "Vincent Le Gallic " - -__license__ = "WTFPL" - -import urllib -import sys -import time - - -red="" -nocolor="" - -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