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

Method records

Tools/unicode/makeunicodedata.py:951–957  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

949 self.version = version
950
951 def records(self) -> Iterator[List[str]]:
952 with open_data(self.template, self.version) as file:
953 for line in file:
954 line = line.split('#', 1)[0].strip()
955 if not line:
956 continue
957 yield [field.strip() for field in line.split(';')]
958
959 def __iter__(self) -> Iterator[List[str]]:
960 return self.records()

Callers 3

__iter__Method · 0.95
expandedMethod · 0.95
__init__Method · 0.80

Calls 3

open_dataFunction · 0.85
stripMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected