jenkins-bot has submitted this change and it was merged.
Change subject: allow URLs for sources
......................................................................
allow URLs for sources
Change-Id: I0bbbd18710be86263e923d592d48ced010063530
---
M pywikibot/site.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py
index cf4c0fa..33fdd11 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -3759,7 +3759,7 @@
datavalue = {'type': 'wikibase-entityid',
'value': sourceclaim._formatDataValue(),
}
- elif sourceclaim.getType() == 'string':
+ elif sourceclaim.getType() in ['string', 'url']:
datavalue = {'type': 'string',
'value': sourceclaim._formatDataValue(),
}
--
To view, visit
https://gerrit.wikimedia.org/r/98018
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0bbbd18710be86263e923d592d48ced010063530
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Denny Vrandecic <vrandecic(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot