Mark Dickinson <dicki...@gmail.com> added the comment:
Your test file has the line: f = open("lol.txt", "r", "utf-8") But the third positional argument to the 'open' built-in function is "buffering", which expects an integer. Pass the "utf-8" argument by name instead: f = open("lol.txt", "r", encoding="utf-8") As a side note, you probably also want to join your thread before exiting the script. Closing here, since it looks as though there's no Python bug. ---------- nosy: +mark.dickinson resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42792> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com