From 9c88bded7536977229ea693acc476383df3eda4c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 30 Sep 2012 10:48:34 -0400 Subject: [PATCH] Cosmetic fix. --- irkerhook.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/irkerhook.py b/irkerhook.py index 5ba417c..29e0355 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -26,12 +26,12 @@ 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: -- 2.26.2