From c5896ff6cb38fd07156334e1eb1ae3c6f3cc1b24 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 29 Sep 2009 19:54:07 -0400 Subject: [PATCH] utils.web: Import urllib's urlencode into our namespace. Signed-off-by: James Vega --- src/utils/web.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/web.py b/src/utils/web.py index 043cf127b..a0e8f35a4 100644 --- a/src/utils/web.py +++ b/src/utils/web.py @@ -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: