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

Method taropen

Lib/tarfile.py:1970–1975  ·  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

1968
1969 @classmethod
1970 def taropen(cls, name, mode="r", fileobj=None, **kwargs):
1971 """Open uncompressed tar archive name for reading or writing.
1972 """
1973 if mode not in ("r", "a", "w", "x"):
1974 raise ValueError("mode must be 'r', 'a', 'w' or 'x'")
1975 return cls(name, mode, fileobj, **kwargs)
1976
1977 @classmethod
1978 def gzopen(cls, name, mode="r", fileobj=None, compresslevel=6, **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