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(), }