jenkins-bot has submitted this change and it was merged.
Change subject: (bug 58188) global name 'lastmove' is not defined but obsolete ......................................................................
(bug 58188) global name 'lastmove' is not defined but obsolete
We got the moved target page through page2.getMovedTarget(). Remove the old code from r10848
Change-Id: I2c46d65613c0c0fa9ee9493f0fb8c2ec53a2266a --- M fixing_redirects.py 1 file changed, 0 insertions(+), 1 deletion(-)
Approvals: Ladsgroup: Looks good to me, approved jenkins-bot: Verified
diff --git a/fixing_redirects.py b/fixing_redirects.py index 0793b67..00ed7ea 100644 --- a/fixing_redirects.py +++ b/fixing_redirects.py @@ -176,7 +176,6 @@ target = page2.getMovedTarget() except pywikibot.NoPage: continue - target = pywikibot.Page(mysite, lastmove['new_title']) except (pywikibot.Error, pywikibot.SectionError): continue # no fix to user namespaces
pywikibot-commits@lists.wikimedia.org