annotate bin/url @ 3981:866c7045ad18

<shachaf> addquote <zzo38> I do sometimes work on Linux computer. I think it is set to en.UTF-8 by default although on my account I have changed it to the C locale, disabled Unicode translation, and loaded a CP437 font. <zzo38> This improves the operation of the system.
author HackBot
date Mon, 04 Nov 2013 05:13:31 +0000
parents 7914d7e0b500
children 03afb1619ef2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2114
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents: 2113
diff changeset
1 #!/usr/bin/env python
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents: 2113
diff changeset
2 import sys, urllib
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents: 2113
diff changeset
3 if len(sys.argv) <= 1:
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents: 2113
diff changeset
4 print "http://codu.org/projects/hackbot/fshg/"
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents: 2113
diff changeset
5 else:
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents: 2113
diff changeset
6 print ("http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/" +
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents: 2113
diff changeset
7 urllib.quote(sys.argv[1]))