Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ convlinesep
Function
convlinesep
Lib/test/test_xml_etree.py:150–151 ·
view source on GitHub ↗
(data)
Source
from the content-addressed store, hash-verified
148
return
decorator
149
150
def
convlinesep(data):
151
return
data.replace(b
'\n'
, os.linesep.encode())
152
153
154
class
ModuleTest(unittest.TestCase):
Callers
1
test_write_to_filename_with_encoding
Method · 0.85
Calls
2
replace
Method · 0.45
encode
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…