MCPcopy
hub / github.com/django/django / format_subject

Method format_subject

django/utils/log.py:179–183  ·  view source on GitHub ↗

Escape CR and LF characters.

(self, subject)

Source from the content-addressed store, hash-verified

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
186class CallbackFilter(logging.Filter):

Callers 1

emitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected