]> projects.mako.cc - python-simplemediawiki.debian/commitdiff
Add docstring to _fetch_http
authorIan Weller <ian@ianweller.org>
Sat, 5 Feb 2011 06:00:46 +0000 (00:00 -0600)
committerBenjamin Mako Hill <mako@atdot.cc>
Sat, 12 Feb 2011 19:07:10 +0000 (14:07 -0500)
simplemediawiki.py

index f039c5ad95b22092efc8592b5cca2d0bb4668daa..2934ab9d96d071ad89c297dc4ac1b24a98ed706f 100644 (file)
@@ -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)

Benjamin Mako Hill || Want to submit a patch?