MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / generated_note

Function generated_note

scripts/generated_note.py:6–10  ·  view source on GitHub ↗

Render the standard two-line generated-file marker in the given comment style.

(comment_prefix, generator, command)

Source from the content-addressed store, hash-verified

4
5
6def generated_note(comment_prefix, generator, command):
7 """Render the standard two-line generated-file marker in the given comment style."""
8 text = _TEMPLATE.format(generator=generator, command=command)
9 prefix = f"{comment_prefix} " if comment_prefix else ""
10 return "\n".join(f"{prefix}{line}".rstrip() for line in text.split("\n"))

Callers 3

generated_note_blockFunction · 0.90
pinned_browsers.pyFile · 0.90
generate_bidi.pyFile · 0.90

Calls 2

splitMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected