]> git.phdru.name Git - dotfiles.git/blob - bin/decode-URLs.py
Initial import
[dotfiles.git] / bin / decode-URLs.py
1 #! /usr/bin/env python
2
3 import sys, urllib
4
5 while True:
6    url = sys.stdin.readline()
7    if not url:
8       break
9    unqoted = urllib.unquote(url.strip())
10    if unqoted.startswith('file://'):
11        unqoted = unqoted[len('file://'):]
12    print unqoted