Lines Matching refs:src
239 def copyfileobj(src, dst, length=None, exception=OSError, bufsize=None):
240 """Copy length bytes from fileobj src to fileobj dst.
247 shutil.copyfileobj(src, dst, bufsize)
252 buf = src.read(bufsize)
258 buf = src.read(remainder)
2851 src = args.test
2852 if is_tarfile(src):
2853 with open(src, 'r') as tar:
2857 print('{!r} is a tar archive.'.format(src))
2859 parser.exit(1, '{!r} is not a tar archive.\n'.format(src))
2862 src = args.list
2863 if is_tarfile(src):
2864 with TarFile.open(src, 'r:*') as tf:
2867 parser.exit(1, '{!r} is not a tar archive.\n'.format(src))
2871 src = args.extract[0]
2874 src, curdir = args.extract
2878 if is_tarfile(src):
2879 with TarFile.open(src, 'r:*') as tf:
2883 msg = '{!r} file is extracted.'.format(src)
2886 'into {!r} directory.').format(src, curdir)
2889 parser.exit(1, '{!r} is not a tar archive.\n'.format(src))