Add docstring to _fetch_http
authorIan Weller <ian@ianweller.org>
Sat, 5 Feb 2011 06:00:46 +0000 (00:00 -0600)
committerIan Weller <ian@ianweller.org>
Sat, 5 Feb 2011 06:00:46 +0000 (00:00 -0600)
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?