예제 #1
0
파일: output.py 프로젝트: ebersac/httpcli
def print_content(string):
    """Attempts to pretty print whatever string is provided."""
    if string is not None:
        print content.get_pretty(string)
예제 #2
0
def print_content(string):
    """Attempts to pretty print whatever string is provided."""
    if string is not None:
        print content.get_pretty(string)
예제 #3
0
파일: output.py 프로젝트: dolph/httpcli
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('')