From: Ian Weller Date: Sat, 5 Feb 2011 06:00:46 +0000 (-0600) Subject: Add docstring to _fetch_http X-Git-Url: https://projects.mako.cc/source/python-simplemediawiki.debian/commitdiff_plain/b1a10bed3779bd4378e5f6546049dacdb8f0b56e?ds=sidebyside Add docstring to _fetch_http --- diff --git a/simplemediawiki.py b/simplemediawiki.py index f039c5a..2934ab9 100644 --- a/simplemediawiki.py +++ b/simplemediawiki.py @@ -74,6 +74,10 @@ class MediaWiki(): self._opener.addheaders = [('User-agent', user_agent)] def _fetch_http(self, url, params): + """ + Standard HTTP request handler for this class with gzip and cookie + support. + """ request = urllib2.Request(url, urllib.urlencode(params)) request.add_header('Accept-encoding', 'gzip') response = self._opener.open(request)