MCPcopy
hub / github.com/cherrypy/cherrypy / read

Method read

cherrypy/lib/reprconf.py:157–166  ·  view source on GitHub ↗
(self, filenames)

Source from the content-addressed store, hash-verified

155 return optionstr
156
157 def read(self, filenames):
158 if isinstance(filenames, text_or_bytes):
159 filenames = [filenames]
160 for filename in filenames:
161 # try:
162 # fp = open(filename)
163 # except IOError:
164 # continue
165 with open(filename) as fp:
166 self._read(fp, filename)
167
168 def as_dict(self, raw=False, vars=None):
169 """Convert an INI file to a dictionary."""

Callers 15

dict_from_fileMethod · 0.95
uploadMethod · 0.45
decompressFunction · 0.45
__next__Method · 0.45
file_generator_limitedFunction · 0.45
process_bodyFunction · 0.45
json_processorFunction · 0.45
pipe_bodyMethod · 0.45
test_CONNECT_methodMethod · 0.45

Calls

no outgoing calls

Tested by 15

pipe_bodyMethod · 0.36
test_CONNECT_methodMethod · 0.36
getpageMethod · 0.36
getcharFunction · 0.36
flashuploadMethod · 0.36
_test_iteratorMethod · 0.36
post_multipartMethod · 0.36
test_post_multipartMethod · 0.36