Mercurial > repo
changeset 1815:24a919a1a974
<oerjan> fetch http://oerjan.nvg.org/url
author | HackBot |
---|---|
date | Fri, 25 Jan 2013 20:40:59 +0000 |
parents | 28b402caecb0 |
children | a911b3c32483 |
files | url.2 |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/url.2 Fri Jan 25 20:40:59 2013 +0000 @@ -0,0 +1,7 @@ +#!/usr/bin/env python +import sys, urllib +if len(sys.argv) <= 1: + print "http://codu.org/projects/hackbot/fshg/" +else: + print ("http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/" + + urllib.quote(sys.argv[1]))