]> projects.mako.cc - python-simplemediawiki.debian/commitdiff
Fix a few issues
authorIan Weller <ian@ianweller.org>
Wed, 2 Feb 2011 21:00:58 +0000 (15:00 -0600)
committerIan Weller <ian@ianweller.org>
Wed, 2 Feb 2011 21:00:58 +0000 (15:00 -0600)
simplemediawiki.py

index 05dd471456e83d6f31b73de2b95342017a5f9dfd..c74fc663a9dd93f1f5e1af4d8262823fe0a04178 100644 (file)
@@ -49,6 +49,7 @@ class MediaWiki():
     _high_limits = None
     _namespaces = None
     _psuedo_namespaces = None
+    _mediawiki_version = None
 
     def __init__(self, api_url, cookie_file=None, user_agent=DEFAULT_UA):
         self._api_url = api_url
@@ -61,7 +62,9 @@ class MediaWiki():
                 self._cj.load()
         else:
             self._cj = cookielib.CookieJar()
-        self._opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self._cj))
+        self._opener = urllib2.build_opener(
+                urllib2.HTTPCookieProcessor(self._cj)
+        )
         self._opener.addheaders = [('User-agent', user_agent)]
 
     def _fetch_http(self, url, params):

Benjamin Mako Hill || Want to submit a patch?