Searched refs:file_content (Results 1 – 3 of 3) sorted by relevance
301 file_content = file.readlines()308 file_content = []309 return file_content311 def _find_offset_of_last_pattern_occurrence(self, file_content: list[str]) -> int:318 if len(file_content) == 0:324 for idx, line in enumerate(reversed(file_content)):337 def _get_lines_with_footprint(self, start_offset: int, file_content: list[str]) -> list[str]:344 if len(file_content) == 0:347 if start_offset > len(file_content) or start_offset <= 0:348 info_line_idx_start = len(file_content) - 1[all …]
114 def convert_to_carray(file_content): argument115 outp = "const unsigned long bindata_len = %d;\n" % len(file_content)117 for i in range(len(file_content)):120 outp += "0x%02x, " % file_content[i]124 def convert_to_uf2(file_content): argument129 numblocks = (len(file_content) + 255) // 256133 chunk = file_content[ptr:ptr + 256]243 file_content = file.read()244 return re.search(r"Board-ID: ([^\r\n]*)", file_content).group(1)
113 file_content = ""115 file_content = input_file.read()116 if file_content != content: