Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
174
def
_quote_periods(bindata):
175
return
re.sub(br
'(?m)^\.'
, b
'..'
, bindata)
176
177
def
_fix_eols(data):
178
return
re.sub(r
'(?:\r\n|\n|\r(?!\n))'
, CRLF, data)
Callers
1
data
Method · 0.85
Calls
1
sub
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…