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

Method visit_With

tools/python-3.11.9-amd64/Lib/ast.py:1099–1103  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

1097 self.traverse(node.orelse)
1098
1099 def visit_With(self, node):
1100 self.fill("with ")
1101 self.interleave(lambda: self.write(", "), self.traverse, node.items)
1102 with self.block(extra=self.get_type_comment(node)):
1103 self.traverse(node.body)
1104
1105 def visit_AsyncWith(self, node):
1106 self.fill("async with ")

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