XZise added a comment.

AH you set the `transliteration_target` before `console_encoding`. Then it 
makes sense :) `console_encoding` is by default `str` and 
`transliteration_target` is set to `'not set'` which is `unicode`. Then you set 
`transliteration_target` to the value of `console_encoding` so to a `str` and 
then you change `console_encoding` to `'utf-8'` which is also `unicode`. So the 
result is as the warning presents:

- `transliteration_target` changed from `unicode` (`'not set'`) to `str` 
(`console_encoding` → `sys.stdout.encoding`)
- `console_encoding` changed from `str` (`sys.stdout.encoding`) to `unicode` 
(`'utf-8'`)

Good that is this mystery solved :)


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



_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to