Patches item #2826571, was opened at 2009-07-24 15:37 Message generated for change (Settings changed) made by siebrand You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2826571...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: AndreasJS (andreasjs) Assigned to: Nobody/Anonymous (nobody) Summary: removed obsolete parameter nofollow_redirects
Initial Comment: The parameter -addcat results in a TypeError: Traceback (most recent call last): File "replace.py", line 705, in <module> main() File "replace.py", line 701, in main bot.run() File "replace.py", line 387, in run cats = page.categories(nofollow_redirects=True) TypeError: categories() got an unexpected keyword argument 'nofollow_redirects'
For a patch see diff below
--- replace.py (revision 7083) +++ replace.py (working copy) @@ -384,7 +384,7 @@ new_text = newest_text newest_text = self.doReplacements(new_text) if hasattr(self, "addedCat"): - cats = page.categories(nofollow_redirects=True) + cats = page.categories() if self.addedCat not in cats: cats.append(self.addedCat) new_text = wikipedia.replaceCategoryLinks(new_text,
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-09-25 02:19
Message: r7309. Thanks.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2826571...
pywikipedia-bugs@lists.wikimedia.org