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

Method maybe_newline

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

Adds a newline if it isn't the start of generated source

(self)

Source from the content-addressed store, hash-verified

716 self.interleave(lambda: self.write(", "), traverser, items)
717
718 def maybe_newline(self):
719 """Adds a newline if it isn't the start of generated source"""
720 if self._source:
721 self.write("\n")
722
723 def fill(self, text=""):
724 """Indent a piece of text and append it, according to the current

Callers 3

fillMethod · 0.95
visit_ClassDefMethod · 0.95
_function_helperMethod · 0.95

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected