Ejemplo n.º 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()
Ejemplo n.º 2
0
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('~'), '~')
Ejemplo n.º 3
0
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('~'), '~')
Ejemplo n.º 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()
Ejemplo n.º 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()