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

Method taropen

Lib/tarfile.py:1951–1956  ·  view source on GitHub ↗

Open uncompressed tar archive name for reading or writing.

(cls, name, mode="r", fileobj=None, **kwargs)

Source from the content-addressed store, hash-verified

1949
1950 @classmethod
1951 def taropen(cls, name, mode="r", fileobj=None, **kwargs):
1952 """Open uncompressed tar archive name for reading or writing.
1953 """
1954 if mode not in ("r", "a", "w", "x"):
1955 raise ValueError("mode must be 'r', 'a', 'w' or 'x'")
1956 return cls(name, mode, fileobj, **kwargs)
1957
1958 @classmethod
1959 def gzopen(cls, name, mode="r", fileobj=None, compresslevel=9, **kwargs):

Callers 14

openMethod · 0.80
gzopenMethod · 0.80
bz2openMethod · 0.80
xzopenMethod · 0.80
zstopenMethod · 0.80
test_pathlike_nameMethod · 0.80
test_illegal_mode_argMethod · 0.80
test_createMethod · 0.80
test_create_existingMethod · 0.80
test_create_taropenMethod · 0.80

Calls 1

clsClass · 0.50

Tested by 9

test_pathlike_nameMethod · 0.64
test_illegal_mode_argMethod · 0.64
test_createMethod · 0.64
test_create_existingMethod · 0.64
test_create_taropenMethod · 0.64