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
--
To view, visit https://gerrit.wikimedia.org/r/223004
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4bb9faccff5683a99d8d1a801d01ca188482e526
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits