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

Method fill

tools/python-3.11.9-amd64/Lib/ast.py:723–727  ·  view source on GitHub ↗

Indent a piece of text and append it, according to the current indentation level

(self, text="")

Source from the content-addressed store, hash-verified

721 self.write("\n")
722
723 def fill(self, text=""):
724 """Indent a piece of text and append it, according to the current
725 indentation level"""
726 self.maybe_newline()
727 self.write(" " * self._indent + text)
728
729 def write(self, *text):
730 """Add new source parts"""

Callers 15

visit_ExprMethod · 0.95
visit_ImportMethod · 0.95
visit_ImportFromMethod · 0.95
visit_AssignMethod · 0.95
visit_AugAssignMethod · 0.95
visit_AnnAssignMethod · 0.95
visit_ReturnMethod · 0.95
visit_PassMethod · 0.95
visit_BreakMethod · 0.95
visit_ContinueMethod · 0.95
visit_DeleteMethod · 0.95
visit_AssertMethod · 0.95

Calls 2

maybe_newlineMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected