def print_fit(fit,vd):
output = '<STR_LIT:\n>'<EOL>if fit.prior is None:<EOL><INDENT>cd = {'<STR_LIT:data>':fit.y}<EOL><DEDENT>else:<EOL><INDENT>cd = {'<STR_LIT:data>':fit.y,'<STR_LIT>':fit.prior}<EOL><DEDENT>output += fit.fmt_values(vd) + '<STR_LIT:\n>'<EOL>output += fit.fmt_errorbudget(vd,cd,percent=next(bool_iter))<EOL>output += '<STR_LIT:\n>'+fit.format(nline=<NUM_LIT:1000>)+'<STR_LIT:\n>'<EOL>if PRINT_FIT:<EOL><INDENT>print(output)<EOL><DEDENT>return output<EOL>
print out fit