MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / transform_import_lines

Function transform_import_lines

scripts/export-import-test.py:134–140  ·  view source on GitHub ↗
(lines)

Source from the content-addressed store, hash-verified

132 # deleted making the import fail. DBs are still imported with the line
133 # -STATEMENT IMPORT DATABASE ...
134 def transform_import_lines(lines):
135 result = []
136 for line in lines:
137 if line.startswith("-IMPORT_DATABASE"):
138 continue
139 result.append(line)
140 return result
141
142 with open(export_path, "w") as f:
143 f.write(header.replace("${LBUG_EXPORT_DB_DIRECTORY}", os.path.join(db_dir, "")))

Callers 1

write_split_testfileFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected