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

Function indent

py/generate.py:91–93  ·  view source on GitHub ↗

A shortcut for `textwrap.indent` that always uses spaces.

(s, n)

Source from the content-addressed store, hash-verified

89
90
91def indent(s, n):
92 """A shortcut for `textwrap.indent` that always uses spaces."""
93 return tw_indent(s, n * " ")
94
95
96BACKTICK_RE = re.compile(r"`([^`]+)`(\w+)?")

Callers 5

generate_enum_codeMethod · 0.70
generate_class_codeMethod · 0.70
generate_codeMethod · 0.70
generate_codeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected