http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11115
Revision: 11115 Author: amir Date: 2013-02-25 09:30:15 +0000 (Mon, 25 Feb 2013) Log Message: ----------- fix up r11114
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-02-25 05:54:07 UTC (rev 11114) +++ trunk/pywikipedia/wikipedia.py 2013-02-25 09:30:15 UTC (rev 11115) @@ -4119,7 +4119,7 @@ 'summary': self._encodeArg(summary, 'summary'), } params['site'] = self._originSite.dbName().split('_')[0] - if params['site']==u"wikidatawikidata": + if self._title: del params['site'] params['id']=params['title'] del params['title']
pywikipedia-svn@lists.wikimedia.org