示例#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('')