mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
utils.web: Import urllib's urlencode into our namespace.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
56fbbe9f36
commit
c5896ff6cb
@ -42,6 +42,7 @@ from str import normalizeWhitespace
|
||||
Request = urllib2.Request
|
||||
urlquote = urllib.quote
|
||||
urlunquote = urllib.unquote
|
||||
urlencode = urllib.urlencode
|
||||
|
||||
class Error(Exception):
|
||||
pass
|
||||
@ -92,7 +93,7 @@ def getUrlFd(url, headers=None, data=None):
|
||||
"""getUrlFd(url, headers=None, data=None)
|
||||
|
||||
Opens the given url and returns a file object. Headers and data are
|
||||
dicts as per urllib2.Request's arguments."""
|
||||
a dict and string, respectively, as per urllib2.Request's arguments."""
|
||||
if headers is None:
|
||||
headers = defaultHeaders
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user