MCPcopy Create free account
hub / github.com/etingof/apacheconfig / dumps

Method dumps

apacheconfig/loader.py:461–470  ·  view source on GitHub ↗

Dumps the configuration in `dct` to a unicode string. Args: dct (dict): Configuration represented as a dictionary. Returns: (Text) containing the configuration in given dictionary.

(self, dct)

Source from the content-addressed store, hash-verified

459 return text
460
461 def dumps(self, dct):
462 """Dumps the configuration in `dct` to a unicode string.
463
464 Args:
465 dct (dict): Configuration represented as a dictionary.
466
467 Returns:
468 (Text) containing the configuration in given dictionary.
469 """
470 return self._dumpdict(dct)
471
472 def dump(self, filepath, dct):
473 """Dumps the configuration in `dct` to a file.

Callers 3

testDumpWholeConfigMethod · 0.95
dumpMethod · 0.95
mainFunction · 0.80

Calls 1

_dumpdictMethod · 0.95

Tested by 1

testDumpWholeConfigMethod · 0.76