MCPcopy Index your code
hub / github.com/python/cpython / maybe_semicolon

Method maybe_semicolon

Lib/_ast_unparse.py:89–92  ·  view source on GitHub ↗

Adds a "; " delimiter if it isn't the start of generated source

(self)

Source from the content-addressed store, hash-verified

87 self.write("\n")
88
89 def maybe_semicolon(self):
90 """Adds a "; " delimiter if it isn't the start of generated source"""
91 if self._source:
92 self.write("; ")
93
94 def fill(self, text="", *, allow_semicolon=True):
95 """Indent a piece of text and append it, according to the current

Callers 1

fillMethod · 0.95

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected