Skip to content

Instantly share code, notes, and snippets.

@devilholk
Last active July 11, 2020 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devilholk/cc794e3482338d2ea116147c3687c4e9 to your computer and use it in GitHub Desktop.
Save devilholk/cc794e3482338d2ea116147c3687c4e9 to your computer and use it in GitHub Desktop.
import ansi_standalone, sys
ansi_standalone.install_colored_stdout_retabulator()
def F2():
with sys.stdout.indented:
print('This is F2')
print('We had two lines to say today')
def F1():
with sys.stdout.indented:
print('This is F1')
print('Calling F2')
F2()
print('Finished calling F2')
print('Calling F1')
F1()
print('Calling F1 complete')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment