Mercurial > repo
diff bin/raw-url @ 9075:c989a1669243
<fizzie> revert 58b9ee8f97a7
author | HackBot |
---|---|
date | Sun, 25 Sep 2016 20:31:46 +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 Sep 25 20:31:46 2016 +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]))