def print_content(string): """Attempts to pretty print whatever string is provided.""" if string is not None: print content.get_pretty(string)
def print_content(string, extra_newline=False): """Attempts to pretty print whatever string is provided.""" if string is not None: print(content.get_pretty(string)) if extra_newline: print('')