concurrent-log-handler: py27 TypeError: write() argument 1 must be unicode, not str
Looks like the default terminator of ‘\n’ isn’t happy being written to an io stream due to the default encoding. A work around is to set terminator to u’\n’. Is there a better fix for this though?
__init__.py, line 337, in do_write
stream.write(self.terminator)
TypeError: write() argument 1 must be unicode, not str
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (7 by maintainers)
Commits related to this issue
- Should fix issue #21 - "write argument must be unicode" on Python 2. Thanks @condontrevor — committed to Preston-Landers/concurrent-log-handler by Preston-Landers 5 years ago
Seems to be working fine here too! Thanks again!
Thank you Preston - Looks good!
Hi Preston,
Tested this morning with the following code, Windows 10, Python 2.7.13 and Python 3.7.2. Everything is working great. Thanks!