(suffix='', prefix='', text=True)
| 308 | return _fix_paths(paths, local_path, include_non_existing) |
| 309 | |
| 310 | def make_temp_file(suffix='', prefix='', text=True): |
| 311 | if not hasattr(_tdata, 'tempdir'): |
| 312 | _tdata.tempdir = tempfile.mkdtemp() |
| 313 | _tmpdirs.append(_tdata.tempdir) |
| 314 | fid, name = tempfile.mkstemp(suffix=suffix, |
| 315 | prefix=prefix, |
| 316 | dir=_tdata.tempdir, |
| 317 | text=text) |
| 318 | fo = os.fdopen(fid, 'w') |
| 319 | return fo, name |
| 320 | |
| 321 | # Hooks for colored terminal output. |
| 322 | # See also https://web.archive.org/web/20100314204946/http://www.livinglogic.de/Python/ansistyle |
no outgoing calls
no test coverage detected