Escape CR and LF characters.
(self, subject)
| 177 | pass |
| 178 | |
| 179 | def format_subject(self, subject): |
| 180 | """ |
| 181 | Escape CR and LF characters. |
| 182 | """ |
| 183 | return subject.replace("\n", "\\n").replace("\r", "\\r") |
| 184 | |
| 185 | |
| 186 | class CallbackFilter(logging.Filter): |