Serhiy Storchaka added the comment: The code
sys.stdin = sys.stdin.detach() is incorrect because sys.stdin should be text stream, but detach() returns binary stream. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22709> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com