MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / block

Method block

tools/python-3.11.9-amd64/Tools/scripts/deepfreeze.py:139–143  ·  view source on GitHub ↗
(self, prefix: str, suffix: str = "")

Source from the content-addressed store, hash-verified

137
138 @contextlib.contextmanager
139 def block(self, prefix: str, suffix: str = "") -> None:
140 self.write(prefix + " {")
141 with self.indent():
142 yield
143 self.write("}" + suffix)
144
145 def object_head(self, typename: str) -> None:
146 with self.block(".ob_base =", ","):

Callers 11

object_headMethod · 0.95
object_var_headMethod · 0.95
generate_bytesMethod · 0.95
generate_unicodeMethod · 0.95
generate_codeMethod · 0.95
generate_tupleMethod · 0.95
generate_floatMethod · 0.95
generate_complexMethod · 0.95
generate_fileMethod · 0.95
generateFunction · 0.95

Calls 2

writeMethod · 0.95
indentMethod · 0.95

Tested by

no test coverage detected