diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-02-20 00:00:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-20 00:00:16 +0100 |
| commit | 92a4984c94ae3148f6c7a66665c65608e7016576 (patch) | |
| tree | 8eb852cc9c8df8ae013277e7d4fb2c5f692f3b4f | |
| parent | 0bd3526953077a75d6534559bf9e56a5cd516728 (diff) | |
Fix verifier.py some more.
| -rw-r--r-- | doc/manual/verifier.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/manual/verifier.py b/doc/manual/verifier.py index c1cc0cbc7..eeacc04e3 100644 --- a/doc/manual/verifier.py +++ b/doc/manual/verifier.py @@ -24,10 +24,13 @@ def find_type(name): Search verify.cc to find out whether given error is error, Bv2.1 "error", warning or "this is OK" note. """ + started = False next = False with open(libdcp / "src" / "verify.cc") as s: for line in s: - if line.find(name) != -1: + if line.find("dcp::VerificationNote::type() const") != -1: + started = True + if started and line.find(name) != -1: next = True elif line.find("return") != -1 and next: for type in types: @@ -51,7 +54,6 @@ with open(header) as h: text = strip.replace('/**', '').replace('*/', '').strip() elif not strip.startswith('/*') and not strip.startswith('*') and strip.endswith(','): this_type = find_type(strip[:-1]) - # print("find", strip[:-1], this_type) if this_type == type: text = re.sub(r"\[.*?\]", lambda m: f'(Bv2.1 {m[0][7:-1]})', text) text = text.replace('<', '<') |
