From: W. Trevor King Date: Fri, 7 Mar 2014 04:21:18 +0000 (-0800) Subject: irkerd: Drop scheme replacement in Target.__init__ X-Git-Tag: 2.7~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9e1147e9f703433ac1f19a8b2164bcc36f33159d;p=irker.git irkerd: Drop scheme replacement in Target.__init__ Now that we've dropped support for Python 2.5, we don't need this workaround anymore. --- diff --git a/irkerd b/irkerd index 3f64ef9..4bd43c5 100755 --- 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: