jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/372339 )
Change subject: [IMPR] test path starts with iw_url ......................................................................
[IMPR] test path starts with iw_url
Change-Id: Ie057cd07a3b62314e28a51fc47d03b822b1db2a7 --- M pywikibot/family.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/family.py b/pywikibot/family.py index a25ebba..4e72e7a 100644 --- a/pywikibot/family.py +++ b/pywikibot/family.py @@ -1243,7 +1243,7 @@ pywikibot.log('Found candidate {0}'.format(site))
for iw_url in site._interwiki_urls(): - if iw_url in path: + if path.startswith(iw_url): matched_sites += [site] break
pywikibot-commits@lists.wikimedia.org