I wanted to modify pages that linked to a deleted image. Command:
replace.py -links
Links from which page should be processed? Fájl:PEGY22LOGO.jpg
etc.
Error:
NoPage: (wikipedia:hu, u'[[hu:F\xe1jl:PEGY22LOGO.jpg]]', 'Page does not exist.')
(wikipedia:hu, u'[[hu:F\xe1jl:PEGY22LOGO.jpg]]', 'Page does not exist.')
Well, page may not exist, but the task is still valid.
Tested in compat. I don't know how core reacts.