MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / read

Method read

functional/io.py:156–165  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

154 yield line
155
156 def read(self):
157 with gzip.GzipFile(self.path, compresslevel=self.compresslevel) as gz_file:
158 gz_file.read1 = gz_file.read
159 with io.TextIOWrapper(
160 gz_file,
161 encoding=self.encoding,
162 errors=self.errors,
163 newline=self.newline,
164 ) as file_content:
165 return file_content.read()
166
167
168class BZ2File(CompressedFile):

Callers 5

setup.pyFile · 0.45
readMethod · 0.45
readMethod · 0.45
readMethod · 0.45
get_read_functionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected