irkerd: Drop scheme replacement in Target.__init__
authorW. Trevor King <wking@tremily.us>
Fri, 7 Mar 2014 04:21:18 +0000 (20:21 -0800)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 11 Mar 2014 04:48:27 +0000 (00:48 -0400)
Now that we've dropped support for Python 2.5, we don't need this
workaround anymore.

irkerd

diff --git a/irkerd b/irkerd
index 3f64ef97a9d4194552aa7231f78de61c81459619..4bd43c56e0adf6f44b73ceaa6ed5c11b25dcea7f 100755 (executable)
--- a/irkerd
+++ b/irkerd
@@ -612,8 +612,6 @@ class Target():
     "Represent a transmission target."
     def __init__(self, url):
         self.url = url
-        # Pre-2.6 Pythons don't recognize irc: as a valid URL prefix.
-        url = url.replace("irc://", "http://")
         parsed = urlparse.urlparse(url)
         irchost, _, ircport = parsed.netloc.partition(':')
         if not ircport: