MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / write

Method write

dependencies/mbedtls-2.24.0/scripts/config.py:425–433  ·  view source on GitHub ↗

Write the whole configuration to the file it was read from. If filename is specified, write to this file instead.

(self, filename=None)

Source from the content-addressed store, hash-verified

423 output.write(line + '\n')
424
425 def write(self, filename=None):
426 """Write the whole configuration to the file it was read from.
427
428 If filename is specified, write to this file instead.
429 """
430 if filename is None:
431 filename = self.filename
432 with open(filename, 'w', encoding='utf-8') as output:
433 self.write_to_stream(output)
434
435if __name__ == '__main__':
436 def main():

Callers 15

mainFunction · 0.95
write_to_streamMethod · 0.45
write_fileMethod · 0.45
logMethod · 0.45
run_cFunction · 0.45
run_oneMethod · 0.45
reportMethod · 0.45
run_oneFunction · 0.45
errorMethod · 0.45
warningMethod · 0.45
mainFunction · 0.45
reportMethod · 0.45

Calls 1

write_to_streamMethod · 0.95

Tested by 11

run_cFunction · 0.36
run_oneMethod · 0.36
reportMethod · 0.36
run_oneFunction · 0.36
errorMethod · 0.36
warningMethod · 0.36
mainFunction · 0.36
write_dependenciesFunction · 0.36
write_parametersFunction · 0.36
gen_from_test_dataFunction · 0.36
write_test_source_fileFunction · 0.36