MCPcopy Index your code
hub / github.com/python/cpython / _quote_periods

Function _quote_periods

Lib/smtplib.py:174–175  ·  view source on GitHub ↗
(bindata)

Source from the content-addressed store, hash-verified

172 re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data))
173
174def _quote_periods(bindata):
175 return re.sub(br'(?m)^\.', b'..', bindata)
176
177def _fix_eols(data):
178 return re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data)

Callers 1

dataMethod · 0.85

Calls 1

subMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…