Mercurial > repo
diff bin/raw-url @ 5643:56dcce63901b
<tswett> revert
author | HackBot |
---|---|
date | Sun, 21 Jun 2015 02:47:59 +0000 |
parents | 5a4571b62410 |
children | 024b7442d847 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/raw-url Sun Jun 21 02:47:59 2015 +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]))