Created
April 17, 2023 05:43
-
-
Save pkutaj/ede27a5c8b7fe745091ad4eac62a01be to your computer and use it in GitHub Desktop.
SSAP-44.03-State-Machine-for-Log-Reducer8.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" ...code """ | |
if action == "skip": | |
pass | |
elif action == "print_line": | |
log_output.write(line) | |
elif action == "print_H1_line": | |
log_output.write(f"# {line}") | |
elif action == "print_H2_line": | |
log_output.write(f"## PLAN: {line}") | |
elif action == "print_H3_line": | |
log_output.write(line.replace("#", "###")) | |
elif action == "print_EOB": | |
log_output.write(line) | |
log_output.write(">"+(100*"-")+"\n\n") | |
""" ...code """ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment