http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11336
Revision: 11336 Author: xqt Date: 2013-04-04 07:50:38 +0000 (Thu, 04 Apr 2013) Log Message: ----------- remove deprecated parameter getSite()
Modified Paths: -------------- trunk/pywikipedia/maintenance/preferences.py
Modified: trunk/pywikipedia/maintenance/preferences.py =================================================================== --- trunk/pywikipedia/maintenance/preferences.py 2013-04-04 07:29:29 UTC (rev 11335) +++ trunk/pywikipedia/maintenance/preferences.py 2013-04-04 07:50:38 UTC (rev 11336) @@ -143,7 +143,7 @@
def set_for(lang, family, keys, values, verbose = False): import wikipedia - site = wikipedia.getSite(lang, family, persistent_http = True) + site = wikipedia.getSite(lang, family) prefs = Preferences(site) for key, value in zip(keys, values): prev = unicode(prefs.get(key, ''))