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/bed00dea090ba51e33981e0b6784f23253d4f74a?hp=efa6e86fcf1586602e39253bca8a7abf5de34efe 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)