MCPcopy Index your code
hub / github.com/python/cpython / open

Method open

Lib/test/test_tarfile.py:3657–3660  ·  view source on GitHub ↗

Open the resulting archive as TarFile. Call after `with`.

(self, **kwargs)

Source from the content-addressed store, hash-verified

3655 self.tar_w.addfile(tarinfo, fileobj)
3656
3657 def open(self, **kwargs):
3658 """Open the resulting archive as TarFile. Call after `with`."""
3659 bio = io.BytesIO(self.contents)
3660 return tarfile.open(fileobj=bio, **kwargs)
3661
3662# Under WASI, `os_helper.can_symlink` is False to make
3663# `skip_unless_symlink` skip symlink tests. "

Callers 15

setUpMethod · 0.45
setUpMethod · 0.45
add_dir_and_getmemberMethod · 0.45
setUpMethod · 0.45
test_empty_tarfileMethod · 0.45
test_ignore_zerosMethod · 0.45
test_no_name_argumentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected