Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aboutcode-org/scancode-toolkit
/ _unicode_text_lines
Function
_unicode_text_lines
src/textcode/analysis.py:336–339 ·
view source on GitHub ↗
(location)
Source
from the content-addressed store, hash-verified
334
335
336
def
_unicode_text_lines(location):
337
with
open(location,
'rb'
)
as
f:
338
for
line in f.read().splitlines(True):
339
yield
as_unicode(line)
340
341
342
def
unicode_text(location, decrlf=False):
Callers
1
unicode_text_lines
Function · 0.85
Calls
2
as_unicode
Function · 0.70
read
Method · 0.45
Tested by
no test coverage detected