Bugs item #3582644, was opened at 2012-11-02 03:05
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=358264…
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: rewrite
Group: None
Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: xqt (xqt)
Assigned to: xqt (xqt)
Summary: Missing
parameters in Page.templatesWithParams()
Initial Comment:
C:\pwb\rewrite>pwb.py version
Pywikibot branches/rewrite/ (r10647, 2012/11/01, 20:25:15)
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
unicode test: ok
There is a difference on this method between trunk and rewrite which caused that error:
Traceback (most recent call last):
File "C:\pwb\rewrite\pwb.py", line 42, in <module>
execfile(sys.argv[0])
File "C:\pwb\rewrite\scripts\interwiki.py", line 2531, in <module>
main()
File "C:\pwb\rewrite\scripts\interwiki.py", line 2505, in main
bot.run()
File "C:\pwb\rewrite\scripts\interwiki.py", line 2263, in run
self.queryStep()
File "C:\pwb\rewrite\scripts\interwiki.py", line 2241, in queryStep
subj.finish(self)
File "C:\pwb\rewrite\scripts\interwiki.py", line 1699, in finish
if self.replaceLinks(page, new, bot):
File "C:\pwb\rewrite\scripts\interwiki.py", line 1854, in replaceLinks
if not botMayEdit(page):
File "C:\pwb\rewrite\scripts\interwiki.py", line 2333, in botMayEdit
templates = page.templatesWithParams(get_redirect=True);
TypeError: templatesWithParams() got an unexpected keyword argument
'get_redirect'
These parameters where introduced in trunk r5496 but the code base of the rewrite was
r5088
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-11-04 01:01
Message:
I marked get_redirect parameter as deprecated_arg in r10649 and removed it
at that call in r10651. I hope this would be ok.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=358264…