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

Method __init__

Lib/test/test_tarfile.py:3603–3605  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

3601 ... # `tar` is now a TarFile with 'filename' in it!
3602 """
3603 def __init__(self, **kwargs):
3604 self.bio = io.BytesIO()
3605 self.tar_kwargs = dict(kwargs)
3606
3607 def __enter__(self):
3608 self.tar_w = tarfile.TarFile(mode='w', fileobj=self.bio, **self.tar_kwargs)

Callers 1

test_init_close_fobjMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected