http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10940
Revision: 10940 Author: drtrigon Date: 2013-01-16 17:38:19 +0000 (Wed, 16 Jan 2013) Log Message: ----------- bug fix; enable to get the 'live' (!) version by dropping the cache (this might be not a proper solution to this problem...)
Modified Paths: -------------- branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2013-01-16 15:48:29 UTC (rev 10939) +++ branches/rewrite/pywikibot/site.py 2013-01-16 17:38:19 UTC (rev 10940) @@ -1109,7 +1109,10 @@ version numbers and any other text contained in the version.
""" + exp = config.API_config_expiry # expire immediately to get + config.API_config_expiry = 0 # 'live' (!) version data versionstring = self.siteinfo['generator'] + config.API_config_expiry = exp m = re.match(r"^MediaWiki ([0-9]+).([0-9]+)(.*)$", versionstring) if m: return (int(m.group(1)), int(m.group(2)), m.group(3))