コード例 #1
0
def get_files():
    # get all files with default argument of nothing being all files
    args = autopep8.create_parser().parse_args()
    if args.files:
        yield from args.files
    else:
        yield from all_changed()
コード例 #2
0
ファイル: update_readme.py プロジェクト: hkdb/sysconfig
def help_message():
    """Return help output."""
    parser = autopep8.create_parser()
    string_io = io.StringIO()
    parser.print_help(string_io)
    # Undo home directory expansion.
    return string_io.getvalue().replace(os.path.expanduser('~'), '~')
コード例 #3
0
ファイル: update_readme.py プロジェクト: Marslo/VimConfig
def help_message():
    """Return help output."""
    parser = autopep8.create_parser()
    string_io = io.StringIO()
    parser.print_help(string_io)
    # Undo home directory expansion.
    return string_io.getvalue().replace(os.path.expanduser('~'), '~')
コード例 #4
0
def help_message():
    """Return help output."""
    parser = autopep8.create_parser()
    string_io = io.StringIO()
    parser.print_help(string_io)
    return string_io.getvalue()
コード例 #5
0
def help_message():
    """Return help output."""
    parser = autopep8.create_parser()
    string_io = io.StringIO()
    parser.print_help(string_io)
    return string_io.getvalue()