Mercurial > hg > config
comparison python/url2txt.py @ 406:38dd72d72086
fix
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 31 Jul 2013 14:25:02 -0700 |
parents | 5e0b4ec36013 |
children |
comparison
equal
deleted
inserted
replaced
405:815eb5c796e9 | 406:38dd72d72086 |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | |
3 # TODO: add url2txt as pluggable thingy for smartopen | |
2 | 4 |
3 # xclip -o | sed 's/_//' | sed 's/.html//' | 5 # xclip -o | sed 's/_//' | sed 's/.html//' |
4 | 6 |
5 def url2txt(url): | 7 def url2txt(url): |
6 """gets the text equivalent of a URL""" | 8 """gets the text equivalent of a URL""" |