Call writeline from writelines (#124515)

This makes it more convenient to add a breakpoint here.

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/124515
Approved by: https://github.com/albanD
This commit is contained in:
Edward Z. Yang 2024-04-19 15:38:37 -04:00 committed by PyTorch MergeBot
parent a32eac345f
commit afa78ad08c

View File

@ -1345,7 +1345,7 @@ class WrapperCodeGen(CodeGen):
def writelines(self, lines):
for line in lines:
self.lines.append(line)
self.writeline(line)
def enter_context(self, ctx):
self.lines.append(LineContext(ctx))