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

Method makefile

Lib/test/test_httplib.py:70–76  ·  view source on GitHub ↗
(self, mode, bufsize=None)

Source from the content-addressed store, hash-verified

68 self.data += data
69
70 def makefile(self, mode, bufsize=None):
71 if mode != 'r' and mode != 'rb':
72 raise client.UnimplementedFileMode()
73 # keep the file around so we can check how much was read from it
74 self.file = self.fileclass(self.text)
75 self.file.close = self.file_close #nerf close ()
76 return self.file
77
78 def file_close(self):
79 self.file_closed = True

Callers 1

run_serverMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected