Cosmetic fix.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 30 Sep 2012 14:48:34 +0000 (10:48 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 30 Sep 2012 14:48:34 +0000 (10:48 -0400)
irkerhook.py

index 5ba417cd665c3644d5f5045fbf0501d872b4826d..29e035599cc2a6281ba3edd8e7fa75b6ec67d89c 100755 (executable)
 default_server = "localhost"
 IRKER_PORT = 6659
 
-# The service used to turn your gitwebbish URL into a tinyurl so it
+# The default service used to turn your gitwebbish URL into a tinyurl so it
 # will take up less space on the IRC notification line.
 tinyifier = "http://tinyurl.com/api-create.php?url="
 
-# Map magic urlprefix values to actual URL prefixes
-prefixmap = {
+# Map magic urlprefix values to actual URL prefixes.
+urlprefixmap = {
     "viewcvs": "http://%(host)s/viewcvs/%(repo)s?view=revision&revision=",
     "gitweb": "http://%(host)s/cgi-bin/gitweb.cgi?p=%(repo)s;a=commit;h=",
     "cgit": "http://%(host)s/cgi-bin/cgit.cgi/%(repo)s/commit/?id=",
@@ -52,7 +52,7 @@ def do(command):
     return commands.getstatusoutput(command)[1]
 
 def urlify(extractor, commit):
-    extractor.urlprefix = prefixmap.get(extractor.urlprefix, extractor.urlprefix) 
+    extractor.urlprefix = urlprefixmap.get(extractor.urlprefix, extractor.urlprefix) 
     prefix = extractor.urlprefix % extractor.__dict__
     # Try to tinyfy a reference to a web view for this commit.
     try: