This seems to restore things to sanity, though I'm not convinced I've got the decode nonsense right (however, it works for me):
import sys # Avoid having to do .encode('UTF-8') everywhere. This is a pain; I wish # Python supported something like "sys.stdout.encoding = 'UTF-8'". def fix_stdout(): import codecs sys.stdout = codecs.EncodedFile(sys.stdout, 'UTF-8') def null_decode(input, errors='strict'): return input, len(input) sys.stdout.decode = null_decode fix_stdout()
If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org
[ Home | Post Entry | Log in | Search | Browse Options | Site Map ]
no subject
This seems to restore things to sanity, though I'm not convinced I've got the decode nonsense right (however, it works for me):