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

Method _load

Lib/tarfile.py:2949–2956  ·  view source on GitHub ↗

Read through the entire archive file and look for readable members. This should not run if the file is set to stream.

(self)

Source from the content-addressed store, hash-verified

2947 raise ValueError(tarinfo)
2948
2949 def _load(self):
2950 """Read through the entire archive file and look for readable
2951 members. This should not run if the file is set to stream.
2952 """
2953 if not self.stream:
2954 while self.next() is not None:
2955 pass
2956 self._loaded = True
2957
2958 def _check(self, mode=None):
2959 """Check if TarFile is still open, and if the operation's mode

Callers 13

getmembersMethod · 0.95
get_dataFunction · 0.80
synopsisFunction · 0.80
importfileFunction · 0.80
runMethod · 0.80
test_loadMethod · 0.80
test_load_replacedMethod · 0.80
test_load_failedMethod · 0.80
test_reloadMethod · 0.80
test_reload_modifiedMethod · 0.80

Calls 1

nextMethod · 0.95

Tested by 8

test_loadMethod · 0.64
test_load_replacedMethod · 0.64
test_load_failedMethod · 0.64
test_reloadMethod · 0.64
test_reload_modifiedMethod · 0.64