valhallasw reopened this task as "Open". valhallasw added a subscriber: valhallasw. valhallasw added a comment.
Re-opening this. Pwb.py should not force scripts to be python 3 compatible. The situation here is that Xqt has a script (vm-auto-erl-neu.py), which is not Python 2 compatible. This is fine. Pwb.py should just run it.
I think the main cause is in the
from __future__ import print_function
that was added to pwb.py. Running a script through exec probably takes over that __future__ state.
TASK DETAIL https://phabricator.wikimedia.org/T85053
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb, valhallasw Cc: Aklapper, Xqt, valhallasw, jayvdb, pywikipedia-bugs