MCPcopy 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
336def _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
342def unicode_text(location, decrlf=False):

Callers 1

unicode_text_linesFunction · 0.85

Calls 2

as_unicodeFunction · 0.70
readMethod · 0.45

Tested by

no test coverage detected