(content, **kwargs)
| 170 | return (status, log_path) |
| 171 | |
| 172 | def write_tempfile(content, **kwargs): |
| 173 | fd, path = tempfile.mkstemp(**kwargs) |
| 174 | f = os.fdopen(fd, 'wt') |
| 175 | try: |
| 176 | f.write(content) |
| 177 | finally: |
| 178 | f.close() |
| 179 | return path |
| 180 | |
| 181 | class SFTPError(Exception): |
| 182 | pass |
no test coverage detected