The following snippet:
import pywikibot
itwp = pywikibot.Site('it', 'wikipedia')
title = 'File:Sepp Maier 1.JPG'
pywikibot.ImagePage(itwp, title).fileIsShared()
should return True. However, after https://github.com/wikimedia/pywikibot-core/commit/faf69ed5281c8da06f155711777bbea67d92f00a#diff-6db52cb863a71de75beda6cf2e90e235R1825, it now raises
pywikibot.ImagePage(itwp, title).fileIsShared()
Traceback (most recent call last):
File "<stdin>", line 1, in <module> File "/home/valhallasw/src/pywikibot-core/pywikibot/page.py", line 1864, in fileIsShared raise pywikibot.NoPage(self)
pywikibot.exceptions.NoPage: Page [[it:File:Sepp Maier 1.JPG]] doesn't exist.
Version: core-(2.0)
Severity: normal