Searched refs:file_content (Results 1 – 2 of 2) sorted by relevance
302 file_content = file.readlines()306 file_content = []307 return file_content309 def _find_offset_of_last_pattern_occurrence(self, file_content: typing.List[str]) -> int:316 if len(file_content) == 0:322 for idx, line in enumerate(reversed(file_content)):332 …def _get_lines_with_footprint(self, start_offset: int, file_content: typing.List[str]) -> typing.L…339 if len(file_content) == 0:342 if start_offset > len(file_content) or start_offset <= 0:343 info_line_idx_start = len(file_content) - 1[all …]
102 def convert_to_carray(file_content): argument103 outp = "const unsigned long bindata_len = %d;\n" % len(file_content)105 for i in range(len(file_content)):108 outp += "0x%02x, " % file_content[i]112 def convert_to_uf2(file_content): argument117 numblocks = (len(file_content) + 255) // 256121 chunk = file_content[ptr:ptr + 256]230 file_content = file.read()231 return re.search("Board-ID: ([^\r\n]*)", file_content).group(1)