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

Method fromstring

Lib/test/test_configparser.py:62–65  ·  view source on GitHub ↗
(self, string, defaults=None)

Source from the content-addressed store, hash-verified

60 return instance
61
62 def fromstring(self, string, defaults=None):
63 cf = self.newconfig(defaults)
64 cf.read_string(string)
65 return cf
66
67
68class BasicTestCase(CfgParserTestCaseClass):

Callers

nothing calls this directly

Calls 2

newconfigMethod · 0.95
read_stringMethod · 0.80

Tested by

no test coverage detected