MCPcopy Index your code
hub / github.com/RustPython/RustPython / open

Method open

Lib/test/test_tarfile.py:3640–3643  ·  view source on GitHub ↗

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

(self, **kwargs)

Source from the content-addressed store, hash-verified

3638 self.tar_w.addfile(tarinfo, fileobj)
3639
3640 def open(self, **kwargs):
3641 """Open the resulting archive as TarFile. Call after `with`."""
3642 bio = io.BytesIO(self.contents)
3643 return tarfile.open(fileobj=bio, **kwargs)
3644
3645# Under WASI, `os_helper.can_symlink` is False to make
3646# `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