MCPcopy Create free account
hub / github.com/apache/tvm / strip_header

Function strip_header

tests/scripts/release/make_notes.py:98–103  ·  view source on GitHub ↗
(title: str, header: str)

Source from the content-addressed store, hash-verified

96
97
98def strip_header(title: str, header: str) -> str:
99 pos = title.lower().find(header.lower())
100 if pos == -1:
101 return title
102
103 return title[0:pos] + title[pos + len(header) :].strip()
104
105
106def sprint(*args):

Callers 1

pr_titleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…