Lines Matching refs:open
84 with open(path, mode, encoding=encoding) as fp:
100 with open(path, 'wb') as f:
116 with open(path, mode, encoding=encoding) as fp:
142 with open(srcname, "rb") as src:
389 _use_fd_functions = ({os.open, os.stat, os.unlink, os.rmdir} <=
417 dir_fd = os.open(tmp_dir, os.O_RDONLY)
461 open(os.path.join(src, 'spam'), 'wb').close()
707 with open(os.path.join(src, 'foo'), 'w', encoding='utf-8') as f:
786 with open(os.path.join(src_dir, 'real_dir', 'test.txt'), 'wb'):
1233 with open(src, 'w', encoding='utf-8') as f:
1240 with open(src, 'r', encoding='utf-8') as f:
1253 with open(src, 'w', encoding='utf-8') as f:
1260 with open(src, 'r', encoding='utf-8') as f:
1362 with tarfile.open(tarball, 'r:gz') as tf:
1373 with tarfile.open(tarball, 'r') as tf:
1379 with tarfile.open(path) as tar:
1571 archive = tarfile.open(archive_name)
2004 with open(self.src_file, "wb") as f:
2008 with open(src, "rb") as f:
2011 with open(real_dst, "rb") as f:
2083 with open(self.dst_file, "wb"):
2261 raise OSError('Cannot open "srcfile"')
2264 with support.swap_attr(shutil, 'open', _open):
2276 raise OSError('Cannot open "destfile"')
2279 with support.swap_attr(shutil, 'open', _open):
2284 ('Cannot open "destfile"',))
2298 with support.swap_attr(shutil, 'open', _open):
2320 with support.swap_attr(shutil, 'open', _open):
2347 with open(TESTFN, "rb") as src:
2348 with open(TESTFN2, "wb") as dst:
2352 with open(src, 'rb') as fsrc:
2353 with open(dst, 'rb') as fdst:
2413 with open(TESTFN, 'rb') as f:
2426 with open(TESTFN, "rb") as src:
2427 with open(TESTFN2, "wb") as dst:
2470 with open(srcname, "wb"):
2473 with open(srcname, "rb") as src:
2474 with open(dstname, "wb") as dst:
2513 with open(TESTFN2, "wb") as dst:
2521 with open(TESTFN, "rb") as src:
2703 with open(os.devnull, 'w', encoding='utf-8') as f, \