Patches item #2826571, was opened at 2009-07-24 09:37
Message generated for change (Tracker Item Submitted) made by andreasjs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=282657…
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: Open
Resolution: None
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,
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=282657…