mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
whitespace and a forgotten conf import
This commit is contained in:
parent
093aa40335
commit
8282d3e847
@ -34,6 +34,7 @@ __revision__ = "$Id$"
|
||||
import fix
|
||||
|
||||
import re
|
||||
import conf
|
||||
import socket
|
||||
import urllib2
|
||||
import urlparse
|
||||
@ -66,7 +67,7 @@ def strError(e):
|
||||
return FORBIDDEN
|
||||
else:
|
||||
return str(e)
|
||||
|
||||
|
||||
def getUrlFd(url):
|
||||
"""Gets a file-like object for a url."""
|
||||
try:
|
||||
@ -84,7 +85,7 @@ def getUrlFd(url):
|
||||
raise WebError, strError(e)
|
||||
except urllib2.HTTPError, e:
|
||||
raise WebError, strError(e)
|
||||
|
||||
|
||||
def getUrl(url, size=None):
|
||||
"""Gets a page. Returns a string that is the page gotten."""
|
||||
fd = getUrlFd(url)
|
||||
|
Loading…
Reference in New Issue
Block a user