mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Work around a Python stupidity
This commit is contained in:
parent
177d6fea07
commit
0fbbd8cbd0
@ -71,6 +71,9 @@ def strError(e):
|
|||||||
def getUrlFd(url):
|
def getUrlFd(url):
|
||||||
"""Gets a file-like object for a url."""
|
"""Gets a file-like object for a url."""
|
||||||
try:
|
try:
|
||||||
|
if '#' in url:
|
||||||
|
i = url.index('#')
|
||||||
|
url = url[:i]
|
||||||
request = urllib2.Request(url)
|
request = urllib2.Request(url)
|
||||||
httpProxy = conf.supybot.protocols.http.proxy()
|
httpProxy = conf.supybot.protocols.http.proxy()
|
||||||
if httpProxy:
|
if httpProxy:
|
||||||
|
Loading…
Reference in New Issue
Block a user