valhallasw created this task. valhallasw added a subscriber: valhallasw. valhallasw added a project: pywikibot-core. Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION ``` valhallasw@maeglin:pywikibot-core$ env -i python pwb.py shell master 0 Welcome to the Pywikibot interactive shell!
import pywikibot.editor pywikibot.editor.TextEditor().edit('test')
Traceback (most recent call last): File "<console>", line 1, in <module> File "/home/valhallasw/src/pywikibot-core/pywikibot/editor.py", line 113, in edit raise pywikibot.Error( UnboundLocalError: local variable 'pywikibot' referenced before assignment ```
TASK DETAIL https://phabricator.wikimedia.org/T89485
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: valhallasw Cc: pywikipedia-bugs, valhallasw, Aklapper, jayvdb