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

Method _join_multiline_values

Lib/configparser.py:1175–1185  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1173 st.cursect[st.optname] = None
1174
1175 def _join_multiline_values(self):
1176 defaults = self.default_section, self._defaults
1177 all_sections = itertools.chain((defaults,),
1178 self._sections.items())
1179 for section, options in all_sections:
1180 for name, val in options.items():
1181 if isinstance(val, list):
1182 val = '\n'.join(val).rstrip()
1183 options[name] = self._interpolation.before_read(self,
1184 section,
1185 name, val)
1186
1187 def _read_defaults(self, defaults):
1188 """Read the defaults passed in the initializer.

Callers 1

_readMethod · 0.95

Calls 5

chainMethod · 0.80
before_readMethod · 0.80
itemsMethod · 0.45
rstripMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected