jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] Link: Use anchor in create_separated ......................................................................
[FIX] Link: Use anchor in create_separated
The create_separated method in Link does use '_label' instead of the correct '_anchor' property.
Change-Id: I4bb9faccff5683a99d8d1a801d01ca188482e526 --- M pywikibot/page.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index 25d2779..c9dbfd6 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -5076,9 +5076,9 @@ elif section is not None: link._section = None if label: - link._label = label + link._anchor = label elif label is not None: - link._label = '' + link._anchor = '' return link
pywikibot-commits@lists.wikimedia.org