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

Method read_string

Lib/configparser.py:777–780  ·  view source on GitHub ↗

Read configuration from a given string.

(self, string, source='<string>')

Source from the content-addressed store, hash-verified

775 self._read(f, source)
776
777 def read_string(self, string, source='<string>'):
778 """Read configuration from a given string."""
779 sfile = io.StringIO(string)
780 self.read_file(sfile, source)
781
782 def read_dict(self, dictionary, source='<dict>'):
783 """Read configuration from a dictionary.

Callers 15

fromstringMethod · 0.80
test_basicMethod · 0.80
test_weird_errorsMethod · 0.80
test_empty_caseMethod · 0.80
fromstringMethod · 0.80
fromstringMethod · 0.80

Calls 1

read_fileMethod · 0.95

Tested by 15

fromstringMethod · 0.64
test_basicMethod · 0.64
test_weird_errorsMethod · 0.64
test_empty_caseMethod · 0.64
fromstringMethod · 0.64
fromstringMethod · 0.64