def save_cfg(cfg, suffix): with open(cfg.filename + suffix, "w") as out: p = CFGPrinter(cfg, out) p.print()
def dump(cfg): CFGPrinter(cfg).print()