Work around a Python stupidity

This commit is contained in:
James Vega 2004-07-24 04:56:11 +00:00
parent 177d6fea07
commit 0fbbd8cbd0
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ def strError(e):
def getUrlFd(url):
"""Gets a file-like object for a url."""
try:
if '#' in url:
i = url.index('#')
url = url[:i]
request = urllib2.Request(url)
httpProxy = conf.supybot.protocols.http.proxy()
if httpProxy: