valhallasw added a comment.
Doh. You're right. That means we have to pass through a Link object, then? I.e. the
method would then be
targetpage = Page(Link('/b', oldpage))
which currently doesn't work, as Link requires a Site object (?!):
>> pywikibot.Link("/b", p)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/valhallasw/src/pywikibot-core/pywikibot/page.py", line 4369, in
__init__
"source parameter should be a Site object"
AssertionError: source parameter should be a Site object
TASK DETAIL
https://phabricator.wikimedia.org/T57113
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign
<username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: happy5214, valhallasw
Cc: XZise, valhallasw, gerritbot, happy5214, Legoktm, jayvdb, Ladsgroup, pywikipedia-bugs