http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10197
Revision: 10197 Author: xqt Date: 2012-05-06 11:46:03 +0000 (Sun, 06 May 2012) Log Message: ----------- fix asignment, follow up for r10196
Modified Paths: -------------- trunk/pywikipedia/archivebot.py
Modified: trunk/pywikipedia/archivebot.py =================================================================== --- trunk/pywikipedia/archivebot.py 2012-05-06 11:39:36 UTC (rev 10196) +++ trunk/pywikipedia/archivebot.py 2012-05-06 11:46:03 UTC (rev 10197) @@ -393,7 +393,7 @@ return self.attributes.get(attr,[default])[0]
def set(self, attr, value, out=True): - if attr = 'archive': + if attr == 'archive': value = value.replace('_',' ') self.attributes[attr] = [value, out]