annotate url @ 1812:2f5b38bf4710

<oerjan> fetch http://oerjan.nvg.org/url
author HackBot
date Fri, 25 Jan 2013 20:37:44 +0000
parents 50a542f0e95f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1810
50a542f0e95f <oerjan> fetch http://oerjan.nvg.org/url
HackBot
parents:
diff changeset
1 #!/usr/bin/env python
50a542f0e95f <oerjan> fetch http://oerjan.nvg.org/url
HackBot
parents:
diff changeset
2 import sys, urllib
50a542f0e95f <oerjan> fetch http://oerjan.nvg.org/url
HackBot
parents:
diff changeset
3 arg = sys.argv(1)
50a542f0e95f <oerjan> fetch http://oerjan.nvg.org/url
HackBot
parents:
diff changeset
4 if arg == None: print "http://codu.org/projects/hackbot/fshg/"
50a542f0e95f <oerjan> fetch http://oerjan.nvg.org/url
HackBot
parents:
diff changeset
5 else: print urllib.quote(
50a542f0e95f <oerjan> fetch http://oerjan.nvg.org/url
HackBot
parents:
diff changeset
6 "http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/" . arg)