annotate bin/url @ 1862:4c990f436a32

<Taneb> echo "No-one was ever called Elliot." > wisdom/elliot
author HackBot
date Sat, 26 Jan 2013 22:55:32 +0000
parents a911b3c32483
children 1c1429d055bc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1813
d5b2eb52c760 <oerjan> cat url >bin/url
HackBot
parents: 0
diff changeset
1 #!/usr/bin/env python
d5b2eb52c760 <oerjan> cat url >bin/url
HackBot
parents: 0
diff changeset
2 import sys, urllib
1814
28b402caecb0 <oerjan> cat url.1 >bin/url
HackBot
parents: 1813
diff changeset
3 if len(sys.argv) <= 1:
28b402caecb0 <oerjan> cat url.1 >bin/url
HackBot
parents: 1813
diff changeset
4 print "http://codu.org/projects/hackbot/fshg/"
28b402caecb0 <oerjan> cat url.1 >bin/url
HackBot
parents: 1813
diff changeset
5 else:
1816
a911b3c32483 <oerjan> cat url.2 >bin/url
HackBot
parents: 1814
diff changeset
6 print ("http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/" +
a911b3c32483 <oerjan> cat url.2 >bin/url
HackBot
parents: 1814
diff changeset
7 urllib.quote(sys.argv[1]))