Message334938
| Author |
ulope |
| Recipients |
josnyder, ulope, vinay.sajip, xtreak |
| Date |
2019年02月06日.14:24:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1549463099.64.0.87319346235.issue35046@roundup.psfhosted.org> |
| In-reply-to |
| Content |
This change breaks (probably unsupported) uses of the logging module (esp. in combination with structlog) where non-string objects are passed through the .format() and .emit() calls.
Previously it was possible to set the terminator attribute to None (and then handling that case in a custom 'stream' implementation), which now breaks with a TypeError due to the concatenation.
In case anyone else runs into this (however unlikely that is). A workaround is to set the .terminator to something like this:
class ConcatenableNothing:
def __radd__(self, other):
return other |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2019年02月06日 14:25:01 | ulope | set | recipients:
+ ulope, vinay.sajip, xtreak, josnyder |
| 2019年02月06日 14:24:59 | ulope | set | messageid: <1549463099.64.0.87319346235.issue35046@roundup.psfhosted.org> |
| 2019年02月06日 14:24:59 | ulope | link | issue35046 messages |
| 2019年02月06日 14:24:59 | ulope | create |
|