jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: pywikibot-compat.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
The 'core' user-config.py might include `debug_log.append("")` , to
set debug.
However if this same user-config is used for compat, it creates a NameError.
```
compat$ python pwb.py shell
Traceback (most recent call last):
File "pwb.py", line 50, in <module>
import userlib
File "userlib.py", line 13, in <module>
import wikipedia as pywikibot
File "wikipedia.py", line 172, in <module>
from pywikibot.support import *
File "pywikibot/support.py", line 15, in <module>
from exceptions import *
File "exceptions.py", line 14, in <module>
import config
File "config.py", line 606, in <module>
exec open(_filename, 'r').read()
File "<string>", line 15, in <module>
NameError: name 'debug_log' is not defined
```
There are probably other core only variables which are not supported in compat.
TASK DETAIL
https://phabricator.wikimedia.org/T95074
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
Cc: pywikipedia-bugs, jayvdb, Aklapper, Anshoe