From c305ac0f210568c9b6ab0cd41710e7996814ba0a Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Wed, 2 Feb 2011 15:00:58 -0600 Subject: [PATCH] Fix a few issues --- simplemediawiki.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simplemediawiki.py b/simplemediawiki.py index 05dd471..c74fc66 100644 --- a/simplemediawiki.py +++ b/simplemediawiki.py @@ -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): -- 2.39.5