Message363622
Sometimes, we want to remove the ending \n and sometimes replace it wit something else, like print(). But logging doesn't support that.
I'd want a set_terminate() (Or set_end()) function that does that. I think it's easy. Just insert this at line 1119 of __init__ of 3.8.2:
def set_terminator(string='\n'):
StreamHandler.terminator = string
Thanks! |
|
Date |
User |
Action |
Args |
2020-03-08 01:45:28 | wyz23x2 | set | recipients:
+ wyz23x2 |
2020-03-08 01:45:28 | wyz23x2 | set | messageid: <1583631928.08.0.636438153182.issue39893@roundup.psfhosted.org> |
2020-03-08 01:45:28 | wyz23x2 | link | issue39893 messages |
2020-03-08 01:45:28 | wyz23x2 | create | |
|