XZise added a subscriber: XZise. XZise claimed this task. XZise added a comment.
That the replacement can be a function is a feature of `textlib.replaceExcept` but that can only assume the function takes one argument (which is already the match instance). I guess what could be done is that `textlib.replaceExcept` has a parameter which contains everything that should be passed on to the `new` parameter (additionally to the match). Then the fix could maybe switch on some flags which tell the replace script to pass the page instance for example. TASK DETAIL https://phabricator.wikimedia.org/T109220 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: XZise Cc: XZise, Aklapper, pywikibot-bugs-list, binbot, Malyacko _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
