Lines Matching +full:2 +full:f
23 ZEPHYR_BASE = Path(__file__).parents[2]
34 with open(p) as f:
35 lines = f.readlines()
37 print(f"File with invalid encoding: {p}, skipping", file=sys.stderr)
44 if m and m.group(2) in ("zephyr.h", "zephyr/zephyr.h"):
54 and not m.group(2).startswith("zephyr/")
55 and (ZEPHYR_BASE / "include" / "zephyr" / m.group(2)).exists()
60 + m.group(2)
70 print(f"Updating {p}{' (dry run)' if dry_run else ''}")
72 with open(p, "w") as f:
73 f.write(content)