XZise added a comment.
@Mpaa: This was mostly given from the opening post and from the comment where they mention the sandbox page but here for everyone to copy:
`python pwb.py replace.py -regex '(?s)^(.*)$' "{{యాంత్రిక అనువాదం}}\1" -simulate -lang:te -family:wikipedia -page:'user:Arjunaraoc/sandbox_https://phabricator.wikimedia.org/T99032' -debug -v -log`
As far as I can see I also get it to hang using Python 3.4.2.
I also tried to reproduce your other issue that it crashes. I personally don't really understand why it would hang in one situation and crash in another. And with `python pwb.py replace.py -regex '(?s)^(.*)$' "{{యాంత్రిక అనువాదం}}\1" -simulate -lang:te -family:wikipedia -page:Main\ Page -page:'user:Arjunaraoc/sandbox_https://phabricator.wikimedia.org/T99032' -debug -v -log` I first get asked about the Main Page (and that works) and then it hangs again. So either is the crash related to something else or it's not simply triggered by a replacement before (it should be noted that I didn't saved the changes (apart from the fact that I was using simulation mode)).
It seems to be related to `replaceExcept` or at least in my tests and in the original post the traceback ends (or starts) in `replaceExcept`. And it might be related to the fact that you try to match everything and maybe it uses certain exceptions which have a problem with that. Anyway with that command it's reproducible so it's easier to look into.
And regarding my patch, you need to download it in order to have the “features” from it as it hasn't been merged. And it should only fix the order in which the bot works on the pages. If it also fixed your issues in this bug report you should tell us how you downloaded that patch. Because with that patch my computer hangs too.
TASK DETAIL https://phabricator.wikimedia.org/T99032
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: Mpaa, XZise, Aklapper, Arjunaraoc, jayvdb, pywikipedia-bugs