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

Method visit_With

Lib/_ast_unparse.py:520–524  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

518 self.traverse(node.orelse)
519
520 def visit_With(self, node):
521 self.fill("with ", allow_semicolon=False)
522 self.interleave(lambda: self.write(", "), self.traverse, node.items)
523 with self.block(extra=self.get_type_comment(node)):
524 self.traverse(node.body)
525
526 def visit_AsyncWith(self, node):
527 self.fill("async with ", allow_semicolon=False)

Callers

nothing calls this directly

Calls 6

fillMethod · 0.95
interleaveMethod · 0.95
writeMethod · 0.95
blockMethod · 0.95
get_type_commentMethod · 0.95
traverseMethod · 0.95

Tested by

no test coverage detected