The motivation for this change is in the comment.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
After offline discussion with @broadwaylamb, we went ahead with b00a874b7c7371 instead. The main difference is that b00a874b7c7371 makes sure to close the NamedTemporaryFile before it tries to scp it, which is more in-line with the Python documentation:
Whether the name can be used to open the file a second time, while the named temporary file is still open, varies across platforms (it can be so used on Unix; it cannot on Windows NT or later).