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

Method newconfig

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

Source from the content-addressed store, hash-verified

44 interpolation = configparser._UNSET
45
46 def newconfig(self, defaults=None):
47 arguments = dict(
48 defaults=defaults,
49 allow_no_value=self.allow_no_value,
50 delimiters=self.delimiters,
51 comment_prefixes=self.comment_prefixes,
52 inline_comment_prefixes=self.inline_comment_prefixes,
53 empty_lines_in_values=self.empty_lines_in_values,
54 dict_type=self.dict_type,
55 strict=self.strict,
56 default_section=self.default_section,
57 interpolation=self.interpolation,
58 )
59 instance = self.config_class(**arguments)
60 return instance
61
62 def fromstring(self, string, defaults=None):
63 cf = self.newconfig(defaults)

Callers 1

fromstringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected