XZise added a comment.
Okay I've checked and “user-config.py” is read with `unicode_literals` so it doesn't matter if you define anything using `'foo'` or `u'foo'` because both are now unicode. But I couldn't get the `transliteration_target` warning. This is a snippet from my “user-config.py”:
password_file = '.passwd' print(type(password_file)) console_encoding = 'utf-8' transliteration_target = console_encoding
And it's not importing anything but this is the result:
import pywikibot
<type 'unicode'> WARNING: Type of 'console_encoding' changed Was: <type 'str'> Now: <type 'unicode'>
TASK DETAIL https://phabricator.wikimedia.org/T95810
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: XZise Cc: Wesalius, XZise, Aklapper, jayvdb, Ricordisamoa, gerritbot, pywikipedia-bugs