Xqt added a comment.
In T378787#10284051 <https://phabricator.wikimedia.org/T378787#10284051>, @Ponor wrote: > I think you'll have better python - php compatibility if you simply switch from `re.search` to `regex.search`. > > regex is backwards-compatible with the standard re > > I see you already have it installed: > `21:33:25 regex (/src/.tox/deeptest-py312/lib/python3.12/site-packages/regex) = 2.5.147` Thank you for this hint. `regex` package is installed together with `wikitextparser` package but both are not mandatory for Pywikibot and adding it as dependeny would be a breaking change for the current release and I've not glue what happens on toolforge if Pywikibot needs it as a whole with next major release. It is also the case that this issue only occurs with `hr` language code. TASK DETAIL https://phabricator.wikimedia.org/T378787 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Ponor, Reedy, binbot, Aklapper, pywikibot-bugs-list, JJMC89, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, Viztor, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
