valhallasw added a comment.
In https://phabricator.wikimedia.org/T85053#937726, @Xqt wrote:
Btw what is with those script who are called directly without pwb.py if the framework is installed as side package?
They work without any problems: __future__ import are module-level. However, exec()ing a script means the script essentially runs //within the same module//, so the __future__ import in pwb.py is still used when parsing the script.
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, XZise, jayvdb, pywikipedia-bugs