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

Method write

Lib/test/test_tarfile.py:1732–1735  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

1730 class BadFile(io.BytesIO):
1731 first = True
1732 def write(self, data):
1733 if self.first:
1734 self.first = False
1735 raise exctype
1736
1737 f = BadFile()
1738 with (

Callers 15

test_ignore_zerosMethod · 0.45
test_init_close_fobjMethod · 0.45
_fs_supports_holesMethod · 0.45
test_tar_sizeMethod · 0.45
test_file_sizeMethod · 0.45
test_link_sizeMethod · 0.45
setUpClassMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected